Mono.CSharp.TypeContainer.BaseContext.LookupNamespaceOrType C# (CSharp) Method

LookupNamespaceOrType() public method

public LookupNamespaceOrType ( string name, int arity, Mono.CSharp.Location loc, bool ignore_cs0104 ) : Mono.CSharp.FullNamedExpression
name string
arity int
loc Mono.CSharp.Location
ignore_cs0104 bool
return Mono.CSharp.FullNamedExpression
			public FullNamedExpression LookupNamespaceOrType (string name, int arity, Location loc, bool ignore_cs0104)
			{
				if (arity == 0) {
					TypeParameter[] tp = CurrentTypeParameters;
					if (tp != null) {
						TypeParameter t = TypeParameter.FindTypeParameter (tp, name);
						if (t != null)
							return new TypeParameterExpr (t, loc);
					}
				}

				return tc.Parent.LookupNamespaceOrType (name, arity, loc, ignore_cs0104);
			}