You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CodeGenEngine/LoopExpander.dbl
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -168,7 +168,7 @@ namespace CodeGen.Engine
168
168
data context = template.Context
169
169
data task = context.CurrentTask
170
170
data loop = ^as(loops.Last(), FieldLoopNode)
171
-
data groupStructure = String.IsNullOrWhiteSpace(field.GroupStructure) ? new RpsStructure(field.GroupFields,field.Name) : new RpsStructure(field.GroupStructure)
171
+
data groupStructure = String.IsNullOrWhiteSpace(field.GroupStructure) ? new RpsStructure(context.Repository,field.GroupFields,field.Name) : new RpsStructure(context.Repository,field.GroupStructure)
172
172
data saveMaxIndex = loop.MaxIndex
173
173
data saveCurrentIndex = loop.CurrentIndex
174
174
@@ -869,7 +869,7 @@ namespace CodeGen.Engine
869
869
end
870
870
871
871
;;Build a collection of enums that are referred to by the current structure
872
-
data enumsToProcess = new RpsEnumCollection(currentStructure.Name)
872
+
data enumsToProcess = new RpsEnumCollection(context.Repository,currentStructure.Name)
context.Structures = new RpsStructureCollection(RpsLoadMode.Load,altFieldNames)
1357
+
context.Structures = new RpsStructureCollection(context.Repository,RpsLoadMode.Load,altFieldNames)
1358
1358
context.Properties.TryAdd(^typeof(HarmonyCoreExtensions.Helpers.RelationLookup), new HarmonyCoreExtensions.Helpers.RelationLookup(context.Structures, loadedRelations))
1359
1359
;;create code generator
1360
1360
data codegenInstance = new CodeGenerator(taskSet, context)
0 commit comments