Documentation
¶
Index ¶
- Variables
- func CreateBuilder() ssa.Builder
- func Frontend(src string, caches ...*ssa.AntlrCache) (phpparser.IHtmlDocumentContext, error)
- type SSABuilder
- func (s *SSABuilder) BuildFromAST(raw ssa.FrontAST, b *ssa.FunctionBuilder) error
- func (*SSABuilder) FilterFile(path string) bool
- func (s *SSABuilder) FilterParseAST(path string) bool
- func (*SSABuilder) FilterPreHandlerFile(path string) bool
- func (s *SSABuilder) GetAntlrCache() *ssa.AntlrCache
- func (*SSABuilder) GetLanguage() consts.Language
- func (s *SSABuilder) ParseAST(src string, cache *ssa.AntlrCache) (ssa.FrontAST, error)
- func (s *SSABuilder) PreHandlerFile(ast ssa.FrontAST, editor *memedit.MemEditor, builder *ssa.FunctionBuilder)
- func (s *SSABuilder) PreHandlerProject(fileSystem fi.FileSystem, ast ssa.FrontAST, builder *ssa.FunctionBuilder, ...) error
- func (s *SSABuilder) WrapWithPreprocessedFS(fs fi.FileSystem) fi.FileSystem
Constants ¶
This section is empty.
Variables ¶
View Source
var Builder ssa.Builder = &SSABuilder{}
Functions ¶
func CreateBuilder ¶
func Frontend ¶
func Frontend(src string, caches ...*ssa.AntlrCache) (phpparser.IHtmlDocumentContext, error)
Types ¶
type SSABuilder ¶
type SSABuilder struct {
*ssa.PreHandlerBase
}
func (*SSABuilder) BuildFromAST ¶
func (s *SSABuilder) BuildFromAST(raw ssa.FrontAST, b *ssa.FunctionBuilder) error
func (*SSABuilder) FilterFile ¶
func (*SSABuilder) FilterFile(path string) bool
FilterFile 这里可能还会有问题 比如配置文件
func (*SSABuilder) FilterParseAST ¶
func (s *SSABuilder) FilterParseAST(path string) bool
func (*SSABuilder) FilterPreHandlerFile ¶
func (*SSABuilder) FilterPreHandlerFile(path string) bool
func (*SSABuilder) GetAntlrCache ¶
func (s *SSABuilder) GetAntlrCache() *ssa.AntlrCache
func (*SSABuilder) GetLanguage ¶
func (*SSABuilder) GetLanguage() consts.Language
func (*SSABuilder) ParseAST ¶
func (s *SSABuilder) ParseAST(src string, cache *ssa.AntlrCache) (ssa.FrontAST, error)
func (*SSABuilder) PreHandlerFile ¶
func (s *SSABuilder) PreHandlerFile(ast ssa.FrontAST, editor *memedit.MemEditor, builder *ssa.FunctionBuilder)
func (*SSABuilder) PreHandlerProject ¶
func (s *SSABuilder) PreHandlerProject(fileSystem fi.FileSystem, ast ssa.FrontAST, builder *ssa.FunctionBuilder, editor *memedit.MemEditor) error
func (*SSABuilder) WrapWithPreprocessedFS ¶
func (s *SSABuilder) WrapWithPreprocessedFS(fs fi.FileSystem) fi.FileSystem
Source Files
¶
Click to show internal directories.
Click to hide internal directories.