-using System;
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
{
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);
}
}
}