Class: Ibex::Frontend::AST::NodeAnnotation

Inherits:
Struct
  • Object
show all
Includes:
Node
Defined in:
lib/ibex/frontend/ast.rb,
sig/ibex/frontend/ast.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Node

#serialize, #to_h

Instance Attribute Details

#fieldsObject

Returns the value of attribute fields

Returns:

  • (Object)

    the current value of fields



221
222
223
# File 'lib/ibex/frontend/ast.rb', line 221

def fields
  @fields
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



221
222
223
# File 'lib/ibex/frontend/ast.rb', line 221

def loc
  @loc
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



221
222
223
# File 'lib/ibex/frontend/ast.rb', line 221

def name
  @name
end

Class Method Details

.new(name:, fields:, loc:) ⇒ instance .new(arg0) ⇒ instance

Overloads:

  • .new(name:, fields:, loc:) ⇒ instance

    Parameters:

    • name: (String)
    • fields: (Array[String])
    • loc: (Location)

    Returns:

    • (instance)
  • .new(arg0) ⇒ instance

    Parameters:

    • arg0 ({ ?name: String, ?fields: Array[String], ?loc: Location })

    Returns:

    • (instance)


307
308
# File 'sig/ibex/frontend/ast.rbs', line 307

def self.new: (?name: String, ?fields: Array[String], ?loc: Location) -> instance
| ({ ?name: String, ?fields: Array[String], ?loc: Location }) -> instance