public void RegisterField(string name, string semantic, INode node, Type type) { var variable = Variable.InitVariable(name, type, semantic); NodeIdentifier nodeId = new NodeIdentifier { Variable = variable, SupportedType = type, Node = node }; fields.Add(nodeId.Variable.Name, nodeId); }
public void RegisterField(Variable variable, INode node, Type supportedType) { NodeIdentifier nodeId = new NodeIdentifier() { Variable = variable, SupportedType = supportedType, Node = node }; fields.Add(nodeId.Variable.Name, nodeId); }