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

Inherits:
Object
  • Object
show all
Defined in:
lib/json5/generated_parser.rb

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



3075
3076
3077
3078
3079
# File 'lib/json5/generated_parser.rb', line 3075

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

Instance Attribute Details

#entryObject (readonly)

Signature:

  • ReusableSubtree



3071
3072
3073
# File 'lib/json5/generated_parser.rb', line 3071

def entry
  @entry
end

#token_countObject (readonly)

Signature:

  • Integer



3072
3073
3074
# File 'lib/json5/generated_parser.rb', line 3072

def token_count
  @token_count
end