Beispiel #1
0
 internal override void DeclarationGen()
 {
     Method = Constructor.AddMethod(Parent.Class, "(init)", null, new List <VariableType>()
     {
         Parent.Class.ObjectType
     }, AccessFlag.DefaultFlag);
 }
Beispiel #2
0
        internal override void DeclarationGen()
        {
            List <VariableType> ps = new List <VariableType>()
            {
                VariableType.IntType
            };

            Method = Constructor.AddMethod(Parent.Class, MethodName,
                                           null, ps, new AccessFlag()
            {
                IsStatic = true
            });
        }
Beispiel #3
0
        internal override void DeclarationGen()
        {
            Class stringClass      = Program.ModuleConstructor.Classes.Find(c => c.Name == String.String.ClassName);
            List <VariableType> ps = new List <VariableType>()
            {
                stringClass.ObjectType
            };

            Method = Constructor.AddMethod(Parent.Class, MethodName,
                                           null, ps, new AccessFlag()
            {
                IsStatic = true
            });
        }