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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry:, token_count:) ⇒ Candidate

Returns a new instance of Candidate.



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

#entryObject (readonly)

: ReusableSubtree



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

def entry
  @entry
end

#token_countObject (readonly)

: Integer



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

def token_count
  @token_count
end