ast_typescript

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildConstructorMethod

func BuildConstructorMethod(ctx *parser.ConstructorDeclarationContext) *core_domain.CodeFunction

func BuildImplements

func BuildImplements(typeList parser.IClassOrInterfaceTypeListContext) []string

func BuildInterfacePropertySignature

func BuildInterfacePropertySignature(signatureCtx *parser.PropertySignatureContext, dataStruct *core_domain.CodeDataStruct)

func BuildInterfaceTypeBody

func BuildInterfaceTypeBody(ctx *parser.TypeMemberListContext, dataStruct *core_domain.CodeDataStruct)

func BuildMemberMethod

func BuildMemberMethod(ctx *parser.PropertyMemberDeclarationContext) *core_domain.CodeFunction

func BuildMethodParameter

func BuildMethodParameter(context *parser.ParameterListContext) []core_domain.CodeProperty

func BuildTypeAnnotation

func BuildTypeAnnotation(annotationContext *parser.TypeAnnotationContext) string

func FillMethodFromCallSignature

func FillMethodFromCallSignature(callSignatureContext *parser.CallSignatureContext, function *core_domain.CodeFunction)

func UpdateImportStr

func UpdateImportStr(importText string) string

Types

type TypeScriptIdentListener

type TypeScriptIdentListener struct {
	parser.BaseTypeScriptParserListener
	// contains filtered or unexported fields
}

func NewTypeScriptIdentListener

func NewTypeScriptIdentListener(fileName string) *TypeScriptIdentListener

func (*TypeScriptIdentListener) EnterClassDeclaration

func (s *TypeScriptIdentListener) EnterClassDeclaration(ctx *parser.ClassDeclarationContext)

func (*TypeScriptIdentListener) EnterFunctionDeclaration

func (s *TypeScriptIdentListener) EnterFunctionDeclaration(ctx *parser.FunctionDeclarationContext)

func (*TypeScriptIdentListener) EnterImportAliasDeclaration

func (s *TypeScriptIdentListener) EnterImportAliasDeclaration(ctx *parser.ImportAliasDeclarationContext)

func (*TypeScriptIdentListener) EnterImportAll

func (s *TypeScriptIdentListener) EnterImportAll(ctx *parser.ImportAllContext)

func (*TypeScriptIdentListener) EnterImportFromBlock

func (s *TypeScriptIdentListener) EnterImportFromBlock(ctx *parser.ImportFromBlockContext)

func (*TypeScriptIdentListener) EnterInterfaceDeclaration

func (s *TypeScriptIdentListener) EnterInterfaceDeclaration(ctx *parser.InterfaceDeclarationContext)

func (*TypeScriptIdentListener) ExitClassDeclaration

func (s *TypeScriptIdentListener) ExitClassDeclaration(ctx *parser.ClassDeclarationContext)

func (*TypeScriptIdentListener) ExitInterfaceDeclaration

func (s *TypeScriptIdentListener) ExitInterfaceDeclaration(ctx *parser.InterfaceDeclarationContext)

func (*TypeScriptIdentListener) GetNodeInfo

func (*TypeScriptIdentListener) HandlePropertyMember

func (s *TypeScriptIdentListener) HandlePropertyMember(propertyMemberCtx *parser.PropertyMemberDeclarationContext, dataStruct *core_domain.CodeDataStruct)

Jump to

Keyboard shortcuts

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