move Parser interface to parser package
This commit is contained in:
18
parser/parser.go
Normal file
18
parser/parser.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package parser
|
||||
|
||||
import (
|
||||
"github.com/z7zmey/php-parser/comment"
|
||||
"github.com/z7zmey/php-parser/errors"
|
||||
"github.com/z7zmey/php-parser/node"
|
||||
"github.com/z7zmey/php-parser/position"
|
||||
)
|
||||
|
||||
// Parser interface
|
||||
type Parser interface {
|
||||
Parse() int
|
||||
GetPath() string
|
||||
GetRootNode() node.Node
|
||||
GetErrors() []*errors.Error
|
||||
GetComments() comment.Comments
|
||||
GetPositions() position.Positions
|
||||
}
|
||||
Reference in New Issue
Block a user