protected virtual XmlElement serialize(Node_ParameterInfo node)
 {
     XmlElement elem = _doc.CreateElement(node.typeName, desible1NS);
     append<Node_Direction>(elem, node.@direction, null);
     append<INode_Expression>(elem, node.@type, "type");
     append<Node_Identifier>(elem, node.@name, "name");
     append<Node_Boolean>(elem, node.@hasDefaultValue, "has default value");
     return elem;
 }
Beispiel #2
0
 //parameter-info
 public static HashSet<Identifier> depends(Node_ParameterInfo node)
 {
     return depends(node.type);
 }
Beispiel #3
0
 //parameter-info
 public static ParameterInfo evaluate(Node_ParameterInfo node, IScope scope)
 {
     return new ParameterInfo(
     node.direction.value,
     ReservedType.tryWrap(node.type, scope),
     node.name.value,
     node.hasDefaultValue.value);
 }