C# Class Boo.Lang.Compiler.TypeSystem.NameResolutionService

Mostra file Open project: boo/boo-lang Class Usage Examples

Public Properties

Property Type Description
DotArray char[]

Protected Properties

Property Type Description
_buffer List
_context CompilerContext
_current INamespace
_global INamespace
_innerBuffer List

Public Methods

Method Description
EnterNamespace ( INamespace ns ) : void
GetEntityFromList ( IList list ) : IEntity
GetMostSimilarMemberName ( INamespace ns, string name, EntityType elementType ) : string
GetMostSimilarTypeName ( string name ) : string
GetNamespace ( string ns ) : NamespaceEntity
IsFlagSet ( EntityType flags, EntityType flag ) : bool
LeaveNamespace ( ) : void
NameResolutionService ( CompilerContext context ) : System
OrganizeAssemblyTypes ( Assembly asm ) : void
Reset ( ) : void
Resolve ( INamespace ns, string name ) : IEntity
Resolve ( INamespace ns, string name, EntityType elementType ) : IEntity
Resolve ( string name ) : IEntity
Resolve ( string name, EntityType flags ) : IEntity
Resolve ( List targetList, string name ) : bool
Resolve ( List targetList, string name, EntityType flags ) : bool
ResolveArrayTypeReference ( Boo.Lang.Compiler.Ast.ArrayTypeReference node ) : void
ResolveExtension ( INamespace ns, string name ) : IEntity
ResolveField ( IType type, string name ) : IField
ResolveGenericReferenceExpression ( GenericReferenceExpression gre, IEntity definition ) : IEntity
ResolveGenericTypeReference ( GenericTypeReference gtr, IEntity definition ) : IType
ResolveMember ( IType type, string name, EntityType elementType ) : IEntity
ResolveMethod ( IType type, string name ) : IMethod
ResolveProperty ( IType type, string name ) : IProperty
ResolveQualifiedName ( string name ) : IEntity
ResolveQualifiedName ( List targetList, string name ) : bool
ResolveQualifiedName ( List targetList, string name, EntityType flags ) : bool
ResolveSimpleTypeReference ( Boo.Lang.Compiler.Ast.SimpleTypeReference node ) : void
ResolveTypeReference ( TypeReference node ) : void
Restore ( INamespace saved ) : void

Private Methods

Method Description
AmbiguousReference ( Boo.Lang.Compiler.Ast.SimpleTypeReference node, Ambiguous entity ) : IEntity
CatalogPublicTypes ( Type types ) : void
FilterGenericTypes ( List types, Boo.Lang.Compiler.Ast.SimpleTypeReference node ) : void
FlattenChildNamespaces ( List list, INamespace ns ) : void
GenericArgumentsCountMismatch ( TypeReference node, IType type ) : IEntity
GetEntityFromBuffer ( ) : IEntity
GetGlobalNamespace ( ) : GlobalNamespace
GetTopLevelNamespace ( string topLevelName ) : NamespaceEntity
GetTypes ( TypeReferenceCollection typeReferences ) : IType[]
IsQualifiedName ( string name ) : bool
NameNotType ( Boo.Lang.Compiler.Ast.SimpleTypeReference node ) : IEntity
ResolveExtensionForType ( INamespace ns, IType type, string name ) : IEntity
ResolveTypeName ( Boo.Lang.Compiler.Ast.SimpleTypeReference node ) : IEntity
ResolveTypeReferenceCollection ( TypeReferenceCollection collection ) : void
ToSoundex ( string s ) : string

Method Details

EnterNamespace() public method

public EnterNamespace ( INamespace ns ) : void
ns INamespace
return void

GetEntityFromList() public static method

public static GetEntityFromList ( IList list ) : IEntity
list IList
return IEntity

GetMostSimilarMemberName() public method

public GetMostSimilarMemberName ( INamespace ns, string name, EntityType elementType ) : string
ns INamespace
name string
elementType EntityType
return string

GetMostSimilarTypeName() public method

public GetMostSimilarTypeName ( string name ) : string
name string
return string

GetNamespace() public method

public GetNamespace ( string ns ) : NamespaceEntity
ns string
return NamespaceEntity

IsFlagSet() public static method

public static IsFlagSet ( EntityType flags, EntityType flag ) : bool
flags EntityType
flag EntityType
return bool

LeaveNamespace() public method

public LeaveNamespace ( ) : void
return void

NameResolutionService() public method

public NameResolutionService ( CompilerContext context ) : System
context CompilerContext
return System

OrganizeAssemblyTypes() public method

public OrganizeAssemblyTypes ( Assembly asm ) : void
asm System.Reflection.Assembly
return void

Reset() public method

public Reset ( ) : void
return void

Resolve() public method

public Resolve ( INamespace ns, string name ) : IEntity
ns INamespace
name string
return IEntity

Resolve() public method

public Resolve ( INamespace ns, string name, EntityType elementType ) : IEntity
ns INamespace
name string
elementType EntityType
return IEntity

Resolve() public method

public Resolve ( string name ) : IEntity
name string
return IEntity

Resolve() public method

public Resolve ( string name, EntityType flags ) : IEntity
name string
flags EntityType
return IEntity

Resolve() public method

public Resolve ( List targetList, string name ) : bool
targetList List
name string
return bool

Resolve() public method

public Resolve ( List targetList, string name, EntityType flags ) : bool
targetList List
name string
flags EntityType
return bool

ResolveArrayTypeReference() public method

public ResolveArrayTypeReference ( Boo.Lang.Compiler.Ast.ArrayTypeReference node ) : void
node Boo.Lang.Compiler.Ast.ArrayTypeReference
return void

ResolveExtension() public method

public ResolveExtension ( INamespace ns, string name ) : IEntity
ns INamespace
name string
return IEntity

ResolveField() public static method

public static ResolveField ( IType type, string name ) : IField
type IType
name string
return IField

ResolveGenericReferenceExpression() public method

public ResolveGenericReferenceExpression ( GenericReferenceExpression gre, IEntity definition ) : IEntity
gre Boo.Lang.Compiler.Ast.GenericReferenceExpression
definition IEntity
return IEntity

ResolveGenericTypeReference() public method

public ResolveGenericTypeReference ( GenericTypeReference gtr, IEntity definition ) : IType
gtr Boo.Lang.Compiler.Ast.GenericTypeReference
definition IEntity
return IType

ResolveMember() public static method

public static ResolveMember ( IType type, string name, EntityType elementType ) : IEntity
type IType
name string
elementType EntityType
return IEntity

ResolveMethod() public static method

public static ResolveMethod ( IType type, string name ) : IMethod
type IType
name string
return IMethod

ResolveProperty() public static method

public static ResolveProperty ( IType type, string name ) : IProperty
type IType
name string
return IProperty

ResolveQualifiedName() public method

public ResolveQualifiedName ( string name ) : IEntity
name string
return IEntity

ResolveQualifiedName() public method

public ResolveQualifiedName ( List targetList, string name ) : bool
targetList List
name string
return bool

ResolveQualifiedName() public method

public ResolveQualifiedName ( List targetList, string name, EntityType flags ) : bool
targetList List
name string
flags EntityType
return bool

ResolveSimpleTypeReference() public method

public ResolveSimpleTypeReference ( Boo.Lang.Compiler.Ast.SimpleTypeReference node ) : void
node Boo.Lang.Compiler.Ast.SimpleTypeReference
return void

ResolveTypeReference() public method

public ResolveTypeReference ( TypeReference node ) : void
node Boo.Lang.Compiler.Ast.TypeReference
return void

Restore() public method

public Restore ( INamespace saved ) : void
saved INamespace
return void

Property Details

DotArray public_oe static_oe property

public static char[] DotArray
return char[]

_buffer protected_oe property

protected List _buffer
return List

_context protected_oe property

protected CompilerContext _context
return CompilerContext

_current protected_oe property

protected INamespace _current
return INamespace

_global protected_oe property

protected INamespace _global
return INamespace

_innerBuffer protected_oe property

protected List _innerBuffer
return List