rename flag -meta to -ff
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
func parsePhp5(src string) node.Node {
|
||||
php5parser := php5.NewParser(bytes.NewBufferString(src), "test.php")
|
||||
php5parser.WithMeta()
|
||||
php5parser.WithFreeFloating()
|
||||
php5parser.Parse()
|
||||
|
||||
return php5parser.GetRootNode()
|
||||
|
||||
@@ -30,7 +30,7 @@ abstract class Bar extends Baz
|
||||
// parse
|
||||
|
||||
php7parser := php7.NewParser(bytes.NewBufferString(src), "test.php")
|
||||
php7parser.WithMeta()
|
||||
php7parser.WithFreeFloating()
|
||||
php7parser.Parse()
|
||||
|
||||
rootNode := php7parser.GetRootNode()
|
||||
@@ -62,7 +62,7 @@ abstract class Bar extends Baz
|
||||
|
||||
func parse(src string) node.Node {
|
||||
php7parser := php7.NewParser(bytes.NewBufferString(src), "test.php")
|
||||
php7parser.WithMeta()
|
||||
php7parser.WithFreeFloating()
|
||||
php7parser.Parse()
|
||||
|
||||
return php7parser.GetRootNode()
|
||||
|
||||
Reference in New Issue
Block a user