Beispiel #1
0
 //callee
 public static Callee evaluate(Node_Callee node, IScope scope)
 {
     IList<ParameterInfo> parameters = new List<ParameterInfo>();
     foreach( Node_ParameterInfo child in node.parameterInfos )
     parameters.Add(evaluate(child, scope));
     return new Callee(
     parameters,
     ReservedType.tryWrap(node.returnType, scope));
 }
Beispiel #2
0
 //callee
 public static DependsResults dependsSplit(Node_Callee node)
 {
     DependsResults results = new DependsResults(null,null);
     foreach( Node_ParameterInfo pi in node.parameterInfos )
     results.tryFinish(pi.type);
     results.tryFinish(node.returnType);
     return results;
 }
 protected virtual XmlElement serialize(Node_Callee node)
 {
     XmlElement elem = _doc.CreateElement(node.typeName, desible1NS);
     append<Node_ParameterInfo>(elem, node.@parameterInfos, null);
     append<INode_Expression>(elem, node.@returnType, "return type");
     return elem;
 }