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)


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

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

Instance Attribute Details

#associated_nodeString?

Returns the value of attribute associated_node.

Returns:

  • (String, nil)


89
90
91
# File 'sig/types.rbs', line 89

def associated_node
  @associated_node
end

#kindCommentKind?

Returns the value of attribute kind.

Returns:



87
88
89
# File 'sig/types.rbs', line 87

def kind
  @kind
end

#spanSpan?

Returns the value of attribute span.

Returns:



88
89
90
# File 'sig/types.rbs', line 88

def span
  @span
end

#textString?

Returns the value of attribute text.

Returns:

  • (String, nil)


86
87
88
# File 'sig/types.rbs', line 86

def text
  @text
end