Regenerated files
This commit is contained in:
@@ -171,7 +171,9 @@ namespace CodeGenerator {
|
||||
}
|
||||
|
||||
public static CodeExpression GenerateArrayInitExpression(CodeTypeReference type, IEnumerable<int> dimensions) {
|
||||
string dims = string.Concat(dimensions.Select(d => $"{d},"));
|
||||
var dimValues = dimensions as int[] ?? dimensions.ToArray();
|
||||
string dims = string.Concat(dimValues.Take(dimValues.Count() - 1).Select(d => $"{d},"));
|
||||
dims+= dimValues.Last();
|
||||
return new CodeSnippetExpression($"new {type.BaseType}[{dims}]");
|
||||
}
|
||||
|
||||
@@ -241,7 +243,6 @@ namespace CodeGenerator {
|
||||
//globalNs.Comments.Add(new(comment));
|
||||
|
||||
globalNs.Imports.Add(new("System"));
|
||||
globalNs.Imports.Add(new("BlendFile.CompatTypes"));
|
||||
|
||||
ccu = new();
|
||||
ccu.Namespaces.Add(globalNs);
|
||||
|
||||
Reference in New Issue
Block a user