You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to better enable a bunch of functionality in Syntax Tree and to take advantage of YARP, we need to restructure our tree. This is a meta-issue that is meant to track the overall status of each node being changed.
Issues that are tracked in this issue should target the structure branch so that we can continue to release from main in case there are any bugs.
These nodes are seen as comments and attached to the parse result. For that we should create the same kind of structure instead of adding them to the AST.
Comment
EmbDoc, EmbExprBeg, EmbExprEnd
EndContent
The rest of the nodes in the AST can be removed in favor of just tracking source ranges. This is what YARP and the whitequark/parser gem does and should hopefully cut down on our allocations. These nodes are:
ArgParen
Backtick
Comma
EmbVar
ExcessedComma
HeredocBeg
HeredocEnd
Ident
LBrace
LBracket
LParen
LabelEnd
MethodAddBlock
Op
Period
QSymbolsBeg
QWordsBeg
RBrace
RBracket
RParen
RegexpBeg
RegexpContent
RegexpEnd
StringContent
StringDVar
SymBeg
SymbolContent
SymbolsBeg
TLamBeg
TLambda
TStringBeg
TStringContent
TStringEnd
VoidStmt
WordsBeg
XString
The text was updated successfully, but these errors were encountered:
In order to better enable a bunch of functionality in Syntax Tree and to take advantage of YARP, we need to restructure our tree. This is a meta-issue that is meant to track the overall status of each node being changed.
Issues that are tracked in this issue should target the
structure
branch so that we can continue to release frommain
in case there are any bugs.These nodes are seen as comments and attached to the parse result. For that we should create the same kind of structure instead of adding them to the AST.
Comment
EmbDoc
,EmbExprBeg
,EmbExprEnd
EndContent
The rest of the nodes in the AST can be removed in favor of just tracking source ranges. This is what YARP and the whitequark/parser gem does and should hopefully cut down on our allocations. These nodes are:
ArgParen
Backtick
Comma
EmbVar
ExcessedComma
HeredocBeg
HeredocEnd
Ident
LBrace
LBracket
LParen
LabelEnd
MethodAddBlock
Op
Period
QSymbolsBeg
QWordsBeg
RBrace
RBracket
RParen
RegexpBeg
RegexpContent
RegexpEnd
StringContent
StringDVar
SymBeg
SymbolContent
SymbolsBeg
TLamBeg
TLambda
TStringBeg
TStringContent
TStringEnd
VoidStmt
WordsBeg
XString
The text was updated successfully, but these errors were encountered: