Пример #1
0
		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);
		}
Пример #2
0
		//
		// References
		//

		public virtual void VisitTypeReference(TypeReference reference)
		{
		}
Пример #3
0
	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 ;
	}
Пример #4
0
		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();
		}