コード例 #1
0
        public INamespaceBuilder DeclareNamespace(string Name)
        {
            var childName      = new SimpleName(Name);
            var childNamespace = new LLVMNamespace(
                childName, childName.Qualify(FullName), Assembly);

            declaredNamespaces.Add(childNamespace);
            return(childNamespace);
        }
コード例 #2
0
ファイル: LLVMType.cs プロジェクト: jonathanvdc/flame-llvm
 public LLVMType(LLVMNamespace Namespace, ITypeSignatureTemplate Template)
 {
     this.Namespace              = Namespace;
     this.templateInstance       = new TypeSignatureInstance(Template, this);
     this.attrMap                = new AttributeMapBuilder();
     this.declaredMethods        = new List <LLVMMethod>();
     this.declaredStaticCtors    = new List <LLVMMethod>();
     this.declaredInstanceFields = new List <LLVMField>();
     this.declaredStaticFields   = new List <LLVMField>();
     this.declaredFields         = new List <LLVMField>();
     this.fieldCounter           = 0;
     this.declaredProperties     = new List <LLVMProperty>();
     this.RelativeVTable         = new VTableSlots();
 }