Class: Ibex::Runtime::CST::Blender::Candidate

Inherits:
Object
  • Object
show all
Defined in:
lib/ibex/runtime/cst/incremental/blender.rb,
sig/ibex/runtime/cst/incremental/blender.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry:, token_count:) ⇒ Candidate

Returns a new instance of Candidate.

RBS:

  • (entry: ReusableSubtree, token_count: Integer) -> void

Parameters:



34
35
36
37
38
# File 'lib/ibex/runtime/cst/incremental/blender.rb', line 34

def initialize(entry:, token_count:)
  @entry = entry
  @token_count = token_count
  freeze
end

Instance Attribute Details

#entryReusableSubtree (readonly)

Signature:

  • ReusableSubtree

Returns:



30
31
32
# File 'lib/ibex/runtime/cst/incremental/blender.rb', line 30

def entry
  @entry
end

#token_countInteger (readonly)

Signature:

  • Integer

Returns:

  • (Integer)


31
32
33
# File 'lib/ibex/runtime/cst/incremental/blender.rb', line 31

def token_count
  @token_count
end