public bool Resolve(TypeReference typeRef) { String typename = typeRef.TypeName; if (typename == null) { throw new NameResolverException("TypeReference with null TypeName?"); } Type type = typeContainer.LookupType( typename ); typeRef.ResolvedType = type; return (type != null); }
// // References // public virtual void VisitTypeReference(TypeReference reference) { }
public TypeReference type() //throws RecognitionException, TokenStreamException { TypeReference tr ; tr = null; String n; match(COLON); n=qualified_name(); if (0==inputState.guessing) { tr = new TypeReference(n); } return tr ; }
public override void VisitTypeReference(TypeReference reference) { nodeStack.Push( CurrentNode.Nodes.Add("TypeReference " + reference.TypeName + " Resolved to [" + reference.ResolvedType + "]")); CurrentNode.Tag = reference; CurrentNode.EnsureVisible(); base.VisitTypeReference(reference); nodeStack.Pop(); }