Class: TreeSitterLanguagePack::CommentInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCommentInfo

Returns a new instance of CommentInfo.

Parameters:

  • text: (String)
  • kind: (CommentKind)
  • span: (Span)
  • associated_node: (String)


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

def initialize: (?text: String, ?kind: CommentKind, ?span: Span, ?associated_node: String) -> void

Instance Attribute Details

#associated_nodeString? (readonly)

Returns the value of attribute associated_node.

Returns:

  • (String, nil)


48
49
50
# File 'sig/types.rbs', line 48

def associated_node
  @associated_node
end

#kindCommentKind (readonly)

Returns the value of attribute kind.

Returns:



46
47
48
# File 'sig/types.rbs', line 46

def kind
  @kind
end

#spanSpan (readonly)

Returns the value of attribute span.

Returns:



47
48
49
# File 'sig/types.rbs', line 47

def span
  @span
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


45
46
47
# File 'sig/types.rbs', line 45

def text
  @text
end