Mono.CSharp.NamespaceEntry.UsingEntry.Resolve C# (CSharp) Method

Resolve() public method

public Resolve ( IMemberContext rc ) : Namespace
rc IMemberContext
return Namespace
			public Namespace Resolve (IMemberContext rc)
			{
				if (resolved != null)
					return resolved;

				FullNamedExpression fne = name.GetTypeExpression ().ResolveAsTypeStep (rc, false);
				if (fne == null)
					return null;

				resolved = fne as Namespace;
				if (resolved == null) {
					rc.Compiler.Report.SymbolRelatedToPreviousError (fne.Type);
					rc.Compiler.Report.Error (138, Location,
						"`{0}' is a type not a namespace. A using namespace directive can only be applied to namespaces",
						GetSignatureForError ());
				}
				return resolved;
			}