php2ssa

package
v1.4.4-alpha0925 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func CreateBuilder

func CreateBuilder() ssa.Builder

func Frontend

func Frontend(src string, builders ...*SSABuild) (phpparser.IHtmlDocumentContext, error)

Types

type SSABuild added in v1.3.3

type SSABuild struct {
	*ssa.PreHandlerBase
}

func (*SSABuild) BuildFromAST

func (s *SSABuild) BuildFromAST(raw ssa.FrontAST, b *ssa.FunctionBuilder) error

func (*SSABuild) FilterFile added in v1.3.3

func (*SSABuild) FilterFile(path string) bool

FilterFile 这里可能还会有问题 比如配置文件

func (*SSABuild) FilterPreHandlerFile

func (*SSABuild) FilterPreHandlerFile(path string) bool

func (*SSABuild) GetLanguage

func (*SSABuild) GetLanguage() consts.Language

func (*SSABuild) ParseAST

func (s *SSABuild) ParseAST(src string) (ssa.FrontAST, error)

func (*SSABuild) PreHandlerFile

func (s *SSABuild) PreHandlerFile(ast ssa.FrontAST, editor *memedit.MemEditor, builder *ssa.FunctionBuilder)

func (*SSABuild) PreHandlerProject

func (s *SSABuild) PreHandlerProject(fileSystem fi.FileSystem, ast ssa.FrontAST, builder *ssa.FunctionBuilder, editor *memedit.MemEditor) error

Jump to

Keyboard shortcuts

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