ast_python

package
v1.9.11 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildArgList

func BuildArgList(context *parser.ArglistContext) []core_domain.AnnotationKeyValue

func BuildDecoratorsByIndex

func BuildDecoratorsByIndex(node antlr.ParseTree, index int) []core_domain.CodeAnnotation

Types

type PythonIdentListener

type PythonIdentListener struct {
	parser.BasePythonParserListener
}

func NewPythonIdentListener

func NewPythonIdentListener(fileName string) *PythonIdentListener

func (*PythonIdentListener) EnterClassdef

func (s *PythonIdentListener) EnterClassdef(ctx *parser.ClassdefContext)

func (*PythonIdentListener) EnterFrom_stmt

func (s *PythonIdentListener) EnterFrom_stmt(ctx *parser.From_stmtContext)

func (*PythonIdentListener) EnterFuncdef

func (s *PythonIdentListener) EnterFuncdef(ctx *parser.FuncdefContext)

func (*PythonIdentListener) EnterImport_stmt

func (s *PythonIdentListener) EnterImport_stmt(ctx *parser.Import_stmtContext)

func (*PythonIdentListener) ExitClassdef

func (s *PythonIdentListener) ExitClassdef(ctx *parser.ClassdefContext)

func (*PythonIdentListener) ExitFuncdef

func (s *PythonIdentListener) ExitFuncdef(ctx *parser.FuncdefContext)

func (*PythonIdentListener) GetCodeFileInfo

func (s *PythonIdentListener) GetCodeFileInfo() core_domain.CodeContainer

func (*PythonIdentListener) SetDebugOutput

func (s *PythonIdentListener) SetDebugOutput(isDebug bool) io.Writer

Jump to

Keyboard shortcuts

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