Skip to main content

Crate treesitter_types_ruby

Crate treesitter_types_ruby 

Source
Expand description

Strongly-typed AST types for Ruby, generated from tree-sitter-ruby’s node-types.json.

Structs§

Alias
AlternativePattern
ArgumentList
Array
ArrayPattern
AsPattern
Assignment
BareString
BareSymbol
Begin
BeginBlock
Binary
Block
BlockArgument
BlockBody
BlockParameter
BlockParameters
BodyStatement
Break
Call
Case
CaseMatch
ChainedString
Character
Class
ClassVariable
Comment
Complex
Conditional
Constant
DelimitedSymbol
DestructuredLeftAssignment
DestructuredParameter
Do
DoBlock
ElementReference
Else
Elsif
EmptyStatement
Encoding
EndBlock
Ensure
EscapeSequence
ExceptionVariable
Exceptions
ExpressionReferencePattern
False
File
FindPattern
Float
For
ForwardArgument
ForwardParameter
GlobalVariable
Hash
HashKeySymbol
HashPattern
HashSplatArgument
HashSplatNil
HashSplatParameter
HeredocBeginning
HeredocBody
HeredocContent
HeredocEnd
Identifier
If
IfGuard
IfModifier
In
InClause
InstanceVariable
Integer
Interpolation
KeywordParameter
KeywordPattern
Lambda
LambdaParameters
LeftAssignmentList
Line
MatchPattern
Method
MethodParameters
Module
Next
Nil
Operator
OperatorAssignment
OptionalParameter
Pair
ParenthesizedPattern
ParenthesizedStatements
Pattern
Program
Range
Rational
Redo
Regex
Rescue
RescueModifier
RestAssignment
Retry
Return
RightAssignmentList
ScopeResolution
SelfType
Setter
SimpleSymbol
SingletonClass
SingletonMethod
Span
SplatArgument
SplatParameter
String
StringArray
StringContent
Subshell
Super
Superclass
SymbolArray
TestPattern
Then
True
Unary
Undef
Uninterpreted
Unless
UnlessGuard
UnlessModifier
Until
UntilModifier
VariableReferencePattern
When
While
WhileModifier
Yield

Enums§

AnyNode
Arg
ArgumentListChildren
ArrayChildren
ArrayPatternChildren
AssignmentLeft
AssignmentRight
BareStringChildren
BareSymbolChildren
BeginBlockChildren
BeginChildren
BinaryLeft
BinaryOperator
BlockBodyChildren
BlockParametersChildren
BodyStatementChildren
CallBlock
CallMethod
CallOperator
CaseChildren
ClassName
ComplexChildren
DelimitedSymbolChildren
DestructuredLeftAssignmentChildren
DestructuredParameterChildren
DoChildren
ElementReferenceBlock
ElementReferenceChildren
ElseChildren
ElsifAlternative
EndBlockChildren
EnsureChildren
ExceptionsChildren
Expression
FindPatternChildren
ForPattern
HashChildren
HashPatternChildren
HeredocBodyChildren
IfAlternative
InClauseGuard
InterpolationChildren
KeywordPatternKey
LambdaBody
LambdaParametersChildren
LeftAssignmentListChildren
Lhs
MethodBody
MethodName
MethodParametersChildren
ModuleName
NonlocalVariable
OperatorAssignmentOperator
OperatorAssignmentRight
PairKey
ParenthesizedStatementsChildren
ParseError
PatternChildren
PatternConstant
PatternExpr
PatternExprBasic
PatternPrimitive
PatternTopExprBody
Primary
ProgramChildren
RangeBegin
RangeEnd
RangeOperator
RationalChildren
RegexChildren
RescueModifierBody
RightAssignmentListChildren
ScopeResolutionScope
SimpleNumeric
SingletonMethodBody
SingletonMethodObject
Statement
StringChildren
SubshellChildren
ThenChildren
UnaryOperand
UnaryOperator
UnlessAlternative
Variable
VariableReferencePatternName

Traits§

FromNode
Every generated struct and enum implements this.
LeafNode
Implemented by every generated leaf type (identifiers, literals, etc.)
Spanned
Implemented by every generated type that has a source location.