C# Класс Boo.Lang.Compiler.TypeSystem.CallableResolutionService

Overload resolution service.
Наследование: AbstractCompilerComponent
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_arguments Boo.Lang.Compiler.Ast.ExpressionCollection
_candidates List

Открытые методы

Метод Описание
Dispose ( ) : void
GetLogicalTypeDepth ( IType type ) : int
IsValidByRefArg ( IParameter param, IType parameterType, IType argType, Node arg ) : bool
IsValidVargsInvocation ( IParameter parameters, Boo.Lang.Compiler.Ast.ExpressionCollection args ) : bool
ResolveCallableReference ( Boo.Lang.Compiler.Ast.ExpressionCollection args, IEntity candidates ) : IEntity

Защищенные методы

Метод Описание
ArgumentType ( Node node ) : IType
CalculateArgumentScore ( IParameter param, IType parameterType, Node arg ) : int
CheckVarArgsParameter ( IParameter parameters, Boo.Lang.Compiler.Ast.ExpressionCollection args ) : bool
GetArgument ( int index ) : Expression
ShouldExpandArgs ( IMethod method, Boo.Lang.Compiler.Ast.ExpressionCollection args ) : bool

Приватные методы

Метод Описание
ApplicableCandidate ( Candidate candidate ) : bool
BetterCandidate ( Candidate c1, Candidate c2 ) : int
CalculateCallableScore ( ICallableType parameterType, ICallableType argType ) : int
CanLoadAddress ( Node node ) : bool
DoesNotRequireConversions ( Candidate candidate ) : bool
FindApplicableCandidates ( ) : void
FindBestMethod ( List candidates ) : void
FindDataPreservingCandidates ( ) : List
GetParameterTypeTemplate ( Candidate candidate, int position ) : IType
InferGenericMethods ( ) : void
InitializeCandidates ( IEnumerable candidateEntities ) : void
IsValidInvocation ( IParameter parameters, Boo.Lang.Compiler.Ast.ExpressionCollection args, int count ) : bool
IsWideningPromotion ( IType paramType, IType argumentType ) : bool
MoreSpecific ( Candidate c1, Candidate c2 ) : int
MoreSpecific ( IType t1, IType t2 ) : int
RequiresConversion ( int score ) : bool
Reset ( Boo.Lang.Compiler.Ast.ExpressionCollection arguments, IEnumerable candidateEntities ) : void
ShouldExpandVarArgs ( Candidate candidate ) : bool
TotalScore ( Candidate c1 ) : int

Описание методов

ArgumentType() защищенный Метод

protected ArgumentType ( Node node ) : IType
node Node
Результат IType

CalculateArgumentScore() защищенный Метод

protected CalculateArgumentScore ( IParameter param, IType parameterType, Node arg ) : int
param IParameter
parameterType IType
arg Node
Результат int

CheckVarArgsParameter() защищенный Метод

protected CheckVarArgsParameter ( IParameter parameters, Boo.Lang.Compiler.Ast.ExpressionCollection args ) : bool
parameters IParameter
args Boo.Lang.Compiler.Ast.ExpressionCollection
Результат bool

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetArgument() защищенный Метод

protected GetArgument ( int index ) : Expression
index int
Результат Boo.Lang.Compiler.Ast.Expression

GetLogicalTypeDepth() публичный Метод

public GetLogicalTypeDepth ( IType type ) : int
type IType
Результат int

IsValidByRefArg() публичный Метод

public IsValidByRefArg ( IParameter param, IType parameterType, IType argType, Node arg ) : bool
param IParameter
parameterType IType
argType IType
arg Node
Результат bool

IsValidVargsInvocation() публичный Метод

public IsValidVargsInvocation ( IParameter parameters, Boo.Lang.Compiler.Ast.ExpressionCollection args ) : bool
parameters IParameter
args Boo.Lang.Compiler.Ast.ExpressionCollection
Результат bool

ResolveCallableReference() публичный Метод

public ResolveCallableReference ( Boo.Lang.Compiler.Ast.ExpressionCollection args, IEntity candidates ) : IEntity
args Boo.Lang.Compiler.Ast.ExpressionCollection
candidates IEntity
Результат IEntity

ShouldExpandArgs() защищенный Метод

protected ShouldExpandArgs ( IMethod method, Boo.Lang.Compiler.Ast.ExpressionCollection args ) : bool
method IMethod
args Boo.Lang.Compiler.Ast.ExpressionCollection
Результат bool

Описание свойств

_arguments защищенное свойство

protected ExpressionCollection,Boo.Lang.Compiler.Ast _arguments
Результат Boo.Lang.Compiler.Ast.ExpressionCollection

_candidates защищенное свойство

protected List _candidates
Результат List