node constructors return concrete type
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user