fixed double parameterless constructor in code generation
This commit is contained in:
@@ -118,6 +118,7 @@ namespace CodeGenerator {
|
||||
}
|
||||
|
||||
Log("Generating Parameterless constructor");
|
||||
if(ctd.Members.Count > 0)
|
||||
ctd.Members.Add(GenerateParameterlessConstructor(type, ctd));
|
||||
|
||||
Log("Generating Default Constructor");
|
||||
@@ -225,7 +226,7 @@ namespace CodeGenerator {
|
||||
Attributes = MemberAttributes.Public,
|
||||
HasGet = true,
|
||||
GetStatements = {
|
||||
new CodeMethodReturnStatement(new CodeSnippetExpression("_originalType.ParseFType()"))
|
||||
new CodeMethodReturnStatement(new CodeSnippetExpression("_originalType"))
|
||||
},
|
||||
HasSet = true,
|
||||
SetStatements = {
|
||||
|
||||
Reference in New Issue
Block a user