Ejemplo n.º 1
0
 public TypeExpression(ILocation location, StaticTypeReference type)
     : base(location)
 {
     Require.Assigned(type);
     typeName      = type.TypeName;
     this.type     = type;
     allowGenerate = true;
 }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            StaticTypeReference ntr = obj as StaticTypeReference;

            if (ntr == null)
            {
                return(false);
            }
            return(Parent.Equals(ntr.Parent));
        }
Ejemplo n.º 3
0
 public override void Resolve(Generator generator)
 {
     base.Resolve(generator);
     if (IsPossibleTypeName())
     {
         TypeReference t = generator.Resolver.TryResolveType(new TypeName(GetTypeIdentifier()));
         if ((t != null) && t.IsDefinition)
         {
             typeName = new StaticTypeReference(this, (DefinitionTypeReference)t);
             HasTypeName();
         }
     }
 }
Ejemplo n.º 4
0
 public override void Resolve(Generator generator)
 {
     base.Resolve(generator);
     type = new StaticTypeReference(this, generator.Resolver.ResolveDefinitionType(typeName, typeName));
 }