Documentation ¶
Index ¶
- type Context
- func (self *Context) Add(name string, structType si.IBaseDeclaredType) error
- func (self *Context) AddUnresolved(name string, information si.IFileInformation) error
- func (self *Context) Find(name string, allContext bool) (bool, si.IBaseDeclaredType)
- func (self *Context) FindTypeSpec(fileInformation si.IFileInformation, s string) (si.IBaseDeclaredType, error)
- func (self *Context) Iterate(cb func(key string, value si.IBaseDeclaredType) error) error
- func (self *Context) IterateUnresolved(cb func(name string, information []si.IFileInformation) error) error
- func (self *Context) Previous() si.IScopingContext
- func (self *Context) Replace(name string, dcl si.IBaseDeclaredType) error
- type DefaultTypeService
- type ScopeWalker
- func (self ScopeWalker) InternalGenerate(scopingContext si.IScopingContext, indent int, dcl si.ITypeSpec) error
- func (self ScopeWalker) Scope(scopingContext si.IScopingContext, indent int, dcl si.ITypeSpec, ...) error
- func (self ScopeWalker) ScopeAttributeDcl(scopingContext si.IScopingContext, indent int, dcl si.IAttributeDcl) error
- func (self ScopeWalker) ScopeConstantDcl(indent int, constDcl si.IIdlConstDcl) error
- func (self ScopeWalker) ScopeEnumDcl(scopingContext si.IScopingContext, indent int, enumType si.IEnumType) error
- func (self ScopeWalker) ScopeExceptionDcl(scopingContext si.IScopingContext, indent int, dcl si.IIdlException) error
- func (self ScopeWalker) ScopeInterfaceDcl(scopingContext si.IScopingContext, indent int, dcl si.IInterfaceDcl) error
- func (self ScopeWalker) ScopeModuleDcl(scopingContext si.IScopingContext, indent int, dcl si.IIdlModuleDcl) error
- func (self ScopeWalker) ScopeOperationDcl(scopingContext si.IScopingContext, indent int, dcl si.IOperationDeclarations) error
- func (self ScopeWalker) ScopeStructDcl(scopingContext si.IScopingContext, indent int, dcl si.IStructType) error
- func (self ScopeWalker) ScopeTypeDcl(scopingContext si.IScopingContext, indent int, dcl si.ITypeDeclarator) error
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) AddUnresolved ¶
func (self *Context) AddUnresolved(name string, information si.IFileInformation) error
func (*Context) FindTypeSpec ¶
func (self *Context) FindTypeSpec(fileInformation si.IFileInformation, s string) (si.IBaseDeclaredType, error)
func (*Context) IterateUnresolved ¶
func (*Context) Previous ¶
func (self *Context) Previous() si.IScopingContext
type DefaultTypeService ¶
type DefaultTypeService struct {
// contains filtered or unexported fields
}
func NewDefaultTypeService ¶
func NewDefaultTypeService() *DefaultTypeService
func (*DefaultTypeService) Find ¶
func (self *DefaultTypeService) Find(s string) ScopingInterfaces.IBaseDeclaredType
func (*DefaultTypeService) FindOk ¶
func (self *DefaultTypeService) FindOk(s string) (dt ScopingInterfaces.IBaseDeclaredType, ok bool)
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
Click to show internal directories.
Click to hide internal directories.