scoping

package
v0.0.0-...-99bab9e Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func NewScopingContext

func NewScopingContext(name string, defaultTypeService si.IDefaultTypeService, prevContext si.IScopingContext) *Context

func (*Context) Add

func (self *Context) Add(name string, structType si.IBaseDeclaredType) error

func (*Context) AddUnresolved

func (self *Context) AddUnresolved(name string, information si.IFileInformation) error

func (*Context) Find

func (self *Context) Find(name string, allContext bool) (bool, si.IBaseDeclaredType)

func (*Context) FindTypeSpec

func (self *Context) FindTypeSpec(fileInformation si.IFileInformation, s string) (si.IBaseDeclaredType, error)

func (*Context) Iterate

func (self *Context) Iterate(cb func(key string, value si.IBaseDeclaredType) error) error

func (*Context) IterateUnresolved

func (self *Context) IterateUnresolved(cb func(name string, information []si.IFileInformation) error) error

func (*Context) Previous

func (self *Context) Previous() si.IScopingContext

func (*Context) Replace

func (self *Context) Replace(name string, dcl si.IBaseDeclaredType) error

type DefaultTypeService

type DefaultTypeService struct {
	// contains filtered or unexported fields
}

func NewDefaultTypeService

func NewDefaultTypeService() *DefaultTypeService

func (*DefaultTypeService) Find

func (*DefaultTypeService) FindOk

func (*DefaultTypeService) Iterate

func (self *DefaultTypeService) Iterate(cb func(key string, declaredType ScopingInterfaces.IBaseDeclaredType))

type ScopeWalker

type ScopeWalker struct {
}

func NewScopeWalker

func NewScopeWalker() *ScopeWalker

func (ScopeWalker) InternalGenerate

func (self ScopeWalker) InternalGenerate(scopingContext si.IScopingContext, indent int, dcl si.ITypeSpec) error

func (ScopeWalker) Scope

func (self ScopeWalker) Scope(scopingContext si.IScopingContext, indent int, dcl si.ITypeSpec, fileName string) error

func (ScopeWalker) ScopeAttributeDcl

func (self ScopeWalker) ScopeAttributeDcl(scopingContext si.IScopingContext, indent int, dcl si.IAttributeDcl) error

func (ScopeWalker) ScopeConstantDcl

func (self ScopeWalker) ScopeConstantDcl(indent int, constDcl si.IIdlConstDcl) error

func (ScopeWalker) ScopeEnumDcl

func (self ScopeWalker) ScopeEnumDcl(scopingContext si.IScopingContext, indent int, enumType si.IEnumType) error

func (ScopeWalker) ScopeExceptionDcl

func (self ScopeWalker) ScopeExceptionDcl(scopingContext si.IScopingContext, indent int, dcl si.IIdlException) error

func (ScopeWalker) ScopeInterfaceDcl

func (self ScopeWalker) ScopeInterfaceDcl(scopingContext si.IScopingContext, indent int, dcl si.IInterfaceDcl) error

func (ScopeWalker) ScopeModuleDcl

func (self ScopeWalker) ScopeModuleDcl(scopingContext si.IScopingContext, indent int, dcl si.IIdlModuleDcl) error

func (ScopeWalker) ScopeOperationDcl

func (self ScopeWalker) ScopeOperationDcl(scopingContext si.IScopingContext, indent int, dcl si.IOperationDeclarations) error

func (ScopeWalker) ScopeStructDcl

func (self ScopeWalker) ScopeStructDcl(scopingContext si.IScopingContext, indent int, dcl si.IStructType) error

func (ScopeWalker) ScopeTypeDcl

func (self ScopeWalker) ScopeTypeDcl(scopingContext si.IScopingContext, indent int, dcl si.ITypeDeclarator) error

Jump to

Keyboard shortcuts

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