{
internal class GatherTypesBlock : Action
{
- public GatherTypesBlock(Action parent)
+ public GatherTypesBlock(GlobalDataList globalDataList, Action parent)
{
this.parent = parent;
+ this.globalDataList = globalDataList;
}
private Action parent;
+ private GlobalDataList globalDataList;
public Action DealChar(char c)
{
public void OnActive()
{
- LoadEXaml.Operations.Add(GatherType(childOp.ValueList));
+ globalDataList.Operations.Add(GatherType(childOp.ValueList));
childOp = null;
}
{
List<int> genericTypeIndexs = new List<int>();
var genericTypeIndexList = valueList[1] as List<object>;
- foreach (var index in genericTypeIndexList)
+ if (genericTypeIndexList != null)
{
- genericTypeIndexs.Add((int)index);
+ foreach (var index in genericTypeIndexList)
+ {
+ genericTypeIndexs.Add((int)index);
+ }
}
-
- return new GatherType(assemblyIndex, typeName, genericTypeIndexs);
+ return new GatherType(globalDataList, assemblyIndex, typeName, genericTypeIndexs);
}
else
{
- return new GatherType(assemblyIndex, typeName);
+ return new GatherType(globalDataList, assemblyIndex, typeName);
}
}
}