protected virtual XmlElement serialize(Node_ParameterImpl 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<INode_Expression>(elem, node.@defaultValue, "default value");
     return elem;
 }
예제 #2
0
 //parameter-impl
 public static HashSet<Identifier> depends(Node_ParameterImpl node)
 {
     return collectDepends(node.defaultValue, node.type);
 }
예제 #3
0
 //parameter-impl
 public static ParameterImpl evaluate(Node_ParameterImpl node, IScope scope)
 {
     return new ParameterImpl(
     node.direction.value,
     evaluateType(node.type, scope),
     node.name.value,
     ( node.defaultValue == null ?
         null :
         Executor.executeAny(node.defaultValue, scope) ));
 }