[refactoring] rename struct field scanner.Token.Hidden

This commit is contained in:
Vadym Slizov
2020-05-18 00:04:04 +03:00
parent e98607f5d0
commit 5620697cab
11 changed files with 2285 additions and 2285 deletions

View File

@@ -50,7 +50,7 @@ func (l *Parser) Error(msg string) {
}
func (l *Parser) WithTokens() {
l.Lexer.SetWithTokens(true)
l.Lexer.SetWithHiddenTokens(true)
}
// Parse the php7 Parser entrypoint
@@ -93,7 +93,7 @@ func isDollar(r rune) bool {
}
func (l *Parser) MoveFreeFloating(src ast.Vertex, dst ast.Vertex) {
if l.Lexer.GetWithFreeFloating() == false {
if l.Lexer.GetWithHiddenTokens() == false {
return
}
@@ -106,7 +106,7 @@ func (l *Parser) MoveFreeFloating(src ast.Vertex, dst ast.Vertex) {
}
func (l *Parser) setFreeFloating(dst ast.Vertex, p token.Position, strings []token.Token) {
if l.Lexer.GetWithFreeFloating() == false {
if l.Lexer.GetWithHiddenTokens() == false {
return
}
@@ -123,7 +123,7 @@ func (l *Parser) setFreeFloating(dst ast.Vertex, p token.Position, strings []tok
}
func (l *Parser) GetFreeFloatingToken(t *scanner.Token) []token.Token {
if l.Lexer.GetWithFreeFloating() == false {
if l.Lexer.GetWithHiddenTokens() == false {
return []token.Token{}
}
@@ -136,7 +136,7 @@ func (l *Parser) GetFreeFloatingToken(t *scanner.Token) []token.Token {
}
func (l *Parser) addDollarToken(v ast.Vertex) {
if l.Lexer.GetWithFreeFloating() == false {
if l.Lexer.GetWithHiddenTokens() == false {
return
}
@@ -149,7 +149,7 @@ func (l *Parser) addDollarToken(v ast.Vertex) {
}
func (l *Parser) splitSemiColonAndPhpCloseTag(htmlNode ast.Vertex, prevNode ast.Vertex) {
if l.Lexer.GetWithFreeFloating() == false {
if l.Lexer.GetWithHiddenTokens() == false {
return
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff