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



12
13
14
# File 'lib/ibex/lsp/symbol_occurrence.rb', line 12

def data
  @data
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



12
13
14
# File 'lib/ibex/lsp/symbol_occurrence.rb', line 12

def key
  @key
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



12
13
14
# File 'lib/ibex/lsp/symbol_occurrence.rb', line 12

def kind
  @kind
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



12
13
14
# File 'lib/ibex/lsp/symbol_occurrence.rb', line 12

def name
  @name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



12
13
14
# File 'lib/ibex/lsp/symbol_occurrence.rb', line 12

def path
  @path
end

#roleObject

Returns the value of attribute role

Returns:

  • (Object)

    the current value of role



12
13
14
# File 'lib/ibex/lsp/symbol_occurrence.rb', line 12

def role
  @role
end

#spanObject

Returns the value of attribute span

Returns:

  • (Object)

    the current value of span



12
13
14
# File 'lib/ibex/lsp/symbol_occurrence.rb', line 12

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: (symbol_key)
    • path: (String)
    • span: (Frontend::SourceSpan)
    • data: (symbol_data)

    Returns:

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

    Parameters:

    • arg0 ({ ?name: String, ?kind: Symbol, ?role: Symbol, ?key: symbol_key, ?path: String, ?span: Frontend::SourceSpan, ?data: symbol_data })

    Returns:

    • (instance)


27
28
# File 'sig/ibex/lsp/symbol_occurrence.rbs', line 27

def self.new: (?name: String, ?kind: Symbol, ?role: Symbol, ?key: symbol_key, ?path: String, ?span: Frontend::SourceSpan, ?data: symbol_data) -> instance
| ({ ?name: String, ?kind: Symbol, ?role: Symbol, ?key: symbol_key, ?path: String, ?span: Frontend::SourceSpan, ?data: symbol_data }) -> instance