Class: Ibex::LSP::SymbolOccurrence

Inherits:
Struct
  • Object
show all
Defined in:
lib/ibex/lsp/symbol_occurrence.rb,
sig/ibex/lsp/symbol_occurrence.rbs

Overview

A source-backed grammar symbol definition or reference.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



6
7
8
# File 'lib/ibex/lsp/symbol_occurrence.rb', line 6

def data
  @data
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



6
7
8
# File 'lib/ibex/lsp/symbol_occurrence.rb', line 6

def key
  @key
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



6
7
8
# File 'lib/ibex/lsp/symbol_occurrence.rb', line 6

def kind
  @kind
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/ibex/lsp/symbol_occurrence.rb', line 6

def name
  @name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



6
7
8
# File 'lib/ibex/lsp/symbol_occurrence.rb', line 6

def path
  @path
end

#roleObject

Returns the value of attribute role

Returns:

  • (Object)

    the current value of role



6
7
8
# File 'lib/ibex/lsp/symbol_occurrence.rb', line 6

def role
  @role
end

#spanObject

Returns the value of attribute span

Returns:

  • (Object)

    the current value of span



6
7
8
# File 'lib/ibex/lsp/symbol_occurrence.rb', line 6

def span
  @span
end

Class Method Details

.new(name:, kind:, role:, key:, path:, span:, data:) ⇒ instance .new(arg0) ⇒ instance

Overloads:

  • .new(name:, kind:, role:, key:, path:, span:, data:) ⇒ instance

    Parameters:

    • name: (String)
    • kind: (Symbol)
    • role: (Symbol)
    • key: (Array[untyped])
    • path: (String)
    • span: (Frontend::SourceSpan)
    • data: (Hash[Symbol, untyped])

    Returns:

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

    Parameters:

    • arg0 ({ ?name: String, ?kind: Symbol, ?role: Symbol, ?key: Array[untyped], ?path: String, ?span: Frontend::SourceSpan, ?data: Hash[Symbol, untyped] })

    Returns:

    • (instance)


21
22
# File 'sig/ibex/lsp/symbol_occurrence.rbs', line 21

def self.new: (?name: String, ?kind: Symbol, ?role: Symbol, ?key: Array[untyped], ?path: String, ?span: Frontend::SourceSpan, ?data: Hash[Symbol, untyped]) -> instance
| ({ ?name: String, ?kind: Symbol, ?role: Symbol, ?key: Array[untyped], ?path: String, ?span: Frontend::SourceSpan, ?data: Hash[Symbol, untyped] }) -> instance