Exemplo n.º 1
0
        private void AddInternalClass(string name)
        {
            var decl = new DeclarationClass(name, new StatementList());

            TypeBuilderMap.Add(name, new TypeBuilderInfo(decl, Module));
            var entry      = TypeBuilderMap[name];
            var builderObj = entry.Builder.DefineDefaultConstructor(MethodAttributes.Public);

            entry.ConstructorBuilder = new ConstructorBuilderInfo(builderObj);
        }
Exemplo n.º 2
0
        public void AddSubClass(ASTSubClassDefinition n)
        {
            var parent = TypeBuilderMap[n.Parent];

            TypeBuilderMap.Add(n.Name, new TypeBuilderInfo(n, Module, parent));
        }
Exemplo n.º 3
0
 public void AddClass(ASTClassDefinition n)
 {
     TypeBuilderMap.Add(n.Name, new TypeBuilderInfo(n, Module));
 }
Exemplo n.º 4
0
 public void AddClass(DeclarationClass n)
 {
     TypeBuilderMap.Add(n.Name, new TypeBuilderInfo(n, Module));
 }