node constructors return concrete type

This commit is contained in:
z7zmey
2018-01-08 21:18:09 +02:00
parent f2cf2061ee
commit 855665b565
156 changed files with 156 additions and 156 deletions

View File

@@ -20,7 +20,7 @@ import (
"strings"
)
var rootnode = stmt.NewStmtList([]node.Node{})
var rootnode node.Node
func Parse(src io.Reader, fName string) node.Node {
yyDebug = 0

View File

@@ -17,7 +17,7 @@ import (
"github.com/z7zmey/php-parser/comment"
)
var rootnode = stmt.NewStmtList([]node.Node{})
var rootnode node.Node
func Parse(src io.Reader, fName string) node.Node {
yyDebug = 0