public LookupNamespaceOrType ( string name, int arity, LookupMode mode, Location loc ) : FullNamedExpression | ||
name | string | |
arity | int | |
mode | LookupMode | |
loc | Location | |
리턴 | FullNamedExpression |
public override FullNamedExpression LookupNamespaceOrType (string name, int arity, LookupMode mode, Location loc)
{
if (arity == 0) {
var tp = CurrentTypeParameters;
if (tp != null) {
TypeParameter t = tp.Find (name);
if (t != null)
return new TypeParameterExpr (t, loc);
}
}
return base.LookupNamespaceOrType (name, arity, mode, loc);
}