Reordered parameters in Attributes
This commit is contained in:
@@ -323,9 +323,9 @@ namespace CodeGenerator {
|
|||||||
attributeBuilder.New().SetName("DNAClassAttribute")
|
attributeBuilder.New().SetName("DNAClassAttribute")
|
||||||
.SetAttributeUsage(new (new CodeSnippetExpression("AttributeTargets.Class | AttributeTargets.Struct")))
|
.SetAttributeUsage(new (new CodeSnippetExpression("AttributeTargets.Class | AttributeTargets.Struct")))
|
||||||
.DeriveFromClass($"{Namespace}.DNAAttribute")
|
.DeriveFromClass($"{Namespace}.DNAAttribute")
|
||||||
.AddAutoProperty(typeof(int), "Size")
|
|
||||||
.AddAutoProperty(typeof(int), "OriginalIndex")
|
.AddAutoProperty(typeof(int), "OriginalIndex")
|
||||||
.AddAutoProperty(typeof(string), "OriginalName")
|
.AddAutoProperty(typeof(string), "OriginalName")
|
||||||
|
.AddAutoProperty(typeof(int), "Size")
|
||||||
.AddPropertiesConstructor()
|
.AddPropertiesConstructor()
|
||||||
.Build(),
|
.Build(),
|
||||||
attributeBuilder.New().SetName("DNAListAttribute")
|
attributeBuilder.New().SetName("DNAListAttribute")
|
||||||
@@ -382,11 +382,11 @@ namespace CodeGenerator {
|
|||||||
|
|
||||||
CodeAttributeDeclaration cad = new("DNAFieldAttribute");
|
CodeAttributeDeclaration cad = new("DNAFieldAttribute");
|
||||||
cad.Arguments.AddRange(new CodeAttributeArgumentCollection() {
|
cad.Arguments.AddRange(new CodeAttributeArgumentCollection() {
|
||||||
new(new CodePrimitiveExpression(index)),
|
new(new CodePrimitiveExpression(size)),
|
||||||
new(new CodePrimitiveExpression(field.Type)),
|
new(new CodePrimitiveExpression(field.Type)),
|
||||||
|
new(new CodePrimitiveExpression(index)),
|
||||||
new(new CodePrimitiveExpression(field.Name)),
|
new(new CodePrimitiveExpression(field.Name)),
|
||||||
new(new CodePrimitiveExpression(t)),
|
new(new CodePrimitiveExpression(t)),
|
||||||
new(new CodePrimitiveExpression(size)),
|
|
||||||
new(new CodePrimitiveExpression(isPointer)),
|
new(new CodePrimitiveExpression(isPointer)),
|
||||||
new(new CodePrimitiveExpression(offset))
|
new(new CodePrimitiveExpression(offset))
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user