rename flag -meta to -ff

This commit is contained in:
z7zmey
2019-02-25 16:52:47 +02:00
parent 37c9c2092f
commit a7229f53dd
12 changed files with 55 additions and 55 deletions

View File

@@ -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()

View File

@@ -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()