Documentation ¶
Index ¶
- func BuildArgList(context *parser.ArglistContext) []core_domain.AnnotationKeyValue
- func BuildDecorator(x *parser.DecoratorContext) *core_domain.CodeAnnotation
- func BuildDecoratorsByIndex(node antlr.ParseTree, index int) []core_domain.CodeAnnotation
- type PythonIdentListener
- func (s *PythonIdentListener) EnterClassdef(ctx *parser.ClassdefContext)
- func (s *PythonIdentListener) EnterFrom_stmt(ctx *parser.From_stmtContext)
- func (s *PythonIdentListener) EnterFuncdef(ctx *parser.FuncdefContext)
- func (s *PythonIdentListener) EnterImport_stmt(ctx *parser.Import_stmtContext)
- func (s *PythonIdentListener) ExitClassdef(ctx *parser.ClassdefContext)
- func (s *PythonIdentListener) ExitFuncdef(ctx *parser.FuncdefContext)
- func (s *PythonIdentListener) GetCodeFileInfo() core_domain.CodeContainer
- func (s *PythonIdentListener) SetDebugOutput(isDebug bool) io.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildArgList ¶
func BuildArgList(context *parser.ArglistContext) []core_domain.AnnotationKeyValue
func BuildDecorator ¶
func BuildDecorator(x *parser.DecoratorContext) *core_domain.CodeAnnotation
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
Click to show internal directories.
Click to hide internal directories.