Esempio n. 1
0
 public HlFunctionDefinition(
     HlTypeSystem ts,
     HlNamespace root,
     string name,
     IHlToken[] mods) : base(name, mods)
 {
     ReturnType = ts.GetType(root, HLBaseTypeNames.s_UintTypeName);
 }
Esempio n. 2
0
 public void Import(HlNamespace caller, HlTypeSystem other)
 {
     foreach (HlTypeDefinition otherDef in other)
     {
         if (otherDef.IsPublic && !HasType(caller, otherDef.Name))
         {
             AddItem(otherDef);
         }
     }
 }
Esempio n. 3
0
        public static HlTypeSystem Create(HlNamespace root)
        {
            HlTypeSystem ret = new HlTypeSystem();

            ret.AddItem(new UIntTypeDefinition(root));
            ret.AddItem(new FloatTypeDefinition(root));
            ret.AddItem(new StringTypeDefinition(root));
            ret.AddItem(new CStringTypeDefinition(root));
            ret.AddItem(new HlTypeDefinition(root, "void", false, true, true));

            return(ret);
        }
Esempio n. 4
0
 public HlExternalFunctionDefinition(
     HlTypeSystem ts,
     HlNamespace root,
     string name,
     string translated,
     List <IHlToken> mods) : base(
         ts,
         root,
         name,
         mods.ToArray()
         )
 {
     TranslatedFunctionName = translated;
 }