zclwrite: standardize on TokenSeq for all node parts
We'll use TokenSeq for everything, including sequences we expect to contain only one token, mainly for consistency but also so that our local "parser" doesn't need to care about whether the main parser is returning one token or many.
This commit is contained in:
parent
ed2a739cdb
commit
33c3d6e5ad
@ -75,11 +75,11 @@ type Attribute struct {
|
||||
AllTokens *TokenSeq
|
||||
|
||||
LeadCommentTokens *TokenSeq
|
||||
NameToken *Token
|
||||
EqualsToken *Token
|
||||
NameTokens *TokenSeq
|
||||
EqualsTokens *TokenSeq
|
||||
Value *Expression
|
||||
LineCommentTokens *TokenSeq
|
||||
EOLToken *Token
|
||||
EOLTokens *TokenSeq
|
||||
}
|
||||
|
||||
func (a *Attribute) walkChildNodes(w internalWalkFunc) {
|
||||
@ -90,13 +90,13 @@ type Block struct {
|
||||
AllTokens *TokenSeq
|
||||
|
||||
LeadCommentTokens *TokenSeq
|
||||
TypeToken *Token
|
||||
TypeTokens *TokenSeq
|
||||
LabelTokens []*TokenSeq
|
||||
LabelTokensFlat *TokenSeq
|
||||
OBraceToken *Token
|
||||
OBraceTokens *TokenSeq
|
||||
Body *Body
|
||||
CBraceToken *Token
|
||||
EOLToken *Token
|
||||
CBraceTokens *TokenSeq
|
||||
EOLTokens *TokenSeq
|
||||
}
|
||||
|
||||
func (n *Block) walkChildNodes(w internalWalkFunc) {
|
||||
|
Loading…
Reference in New Issue
Block a user