statement

package
v0.0.0-...-d69f115 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *types.Config) types.StatementParser

New creates an instance of a statement parser

Types

type Parser

type Parser struct {
	*types.Config
	// contains filtered or unexported fields
}

Parser parses go statements, e.g. block, declaration and definition of a function/method

func (*Parser) Parse

func (sp *Parser) Parse(statement ast.Stmt) error

func (*Parser) ParseConstValueSpec

func (sp *Parser) ParseConstValueSpec(constSpec types.ConstSpec) ([]*symbols.SymbolDef, error)

func (*Parser) ParseFuncBody

func (sp *Parser) ParseFuncBody(funcDecl *ast.FuncDecl) error

func (*Parser) ParseFuncDecl

func (sp *Parser) ParseFuncDecl(d *ast.FuncDecl) (gotypes.DataType, error)

func (*Parser) ParseValueSpec

func (sp *Parser) ParseValueSpec(spec *ast.ValueSpec) ([]*symbols.SymbolDef, error)

Jump to

Keyboard shortcuts

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