php2ssa

package
v1.4.4-beta9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2025 License: AGPL-3.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Builder ssa.Builder = &SSABuilder{}

Functions

func CreateBuilder

func CreateBuilder() ssa.Builder

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() ssaconfig.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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL