Class: TreeSitterLanguagePack::StructureItem

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStructureItem

Returns a new instance of StructureItem.

Parameters:

  • kind: (StructureKind)
  • name: (String)
  • visibility: (String)
  • span: (Span)
  • children: (Array[StructureItem])
  • decorators: (Array[String])
  • doc_comment: (String)
  • signature: (String)
  • body_span: (Span)


256
# File 'sig/types.rbs', line 256

def initialize: (?kind: StructureKind, ?name: String, ?visibility: String, ?span: Span, ?children: Array[StructureItem], ?decorators: Array[String], ?doc_comment: String, ?signature: String, ?body_span: Span) -> void

Instance Attribute Details

#body_spanSpan? (readonly)

Returns the value of attribute body_span.

Returns:



254
255
256
# File 'sig/types.rbs', line 254

def body_span
  @body_span
end

#childrenArray[StructureItem] (readonly)

Returns the value of attribute children.

Returns:



250
251
252
# File 'sig/types.rbs', line 250

def children
  @children
end

#decoratorsArray[String] (readonly)

Returns the value of attribute decorators.

Returns:

  • (Array[String])


251
252
253
# File 'sig/types.rbs', line 251

def decorators
  @decorators
end

#doc_commentString? (readonly)

Returns the value of attribute doc_comment.

Returns:

  • (String, nil)


252
253
254
# File 'sig/types.rbs', line 252

def doc_comment
  @doc_comment
end

#kindStructureKind (readonly)

Returns the value of attribute kind.

Returns:



246
247
248
# File 'sig/types.rbs', line 246

def kind
  @kind
end

#nameString? (readonly)

Returns the value of attribute name.

Returns:

  • (String, nil)


247
248
249
# File 'sig/types.rbs', line 247

def name
  @name
end

#signatureString? (readonly)

Returns the value of attribute signature.

Returns:

  • (String, nil)


253
254
255
# File 'sig/types.rbs', line 253

def signature
  @signature
end

#spanSpan (readonly)

Returns the value of attribute span.

Returns:



249
250
251
# File 'sig/types.rbs', line 249

def span
  @span
end

#visibilityString? (readonly)

Returns the value of attribute visibility.

Returns:

  • (String, nil)


248
249
250
# File 'sig/types.rbs', line 248

def visibility
  @visibility
end