[refactoring] update ast structure of "InlinHtml" node
This commit is contained in:
@@ -535,7 +535,8 @@ func (n *StmtIf) Accept(v NodeVisitor) {
|
||||
// StmtInlineHtml node
|
||||
type StmtInlineHtml struct {
|
||||
Node
|
||||
Value []byte
|
||||
InlineHtmlTkn *token.Token
|
||||
Value []byte
|
||||
}
|
||||
|
||||
func (n *StmtInlineHtml) Accept(v NodeVisitor) {
|
||||
|
||||
@@ -200,3 +200,7 @@ func (v *FilterTokens) StmtEcho(n *ast.StmtEcho) {
|
||||
n.SeparatorTkns = nil
|
||||
n.SemiColonTkn = nil
|
||||
}
|
||||
|
||||
func (v *FilterTokens) StmtInlineHtml(n *ast.StmtInlineHtml) {
|
||||
n.InlineHtmlTkn = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user