public virtual void visit(ICompiledMethodCallNode value) { }
public void visit(ICompiledMethodCallNode value) { string s = value.GetType().Name + "."; //prepare_node(value.compiled_method, "ICompiledMethodCallNode.compiled_method"); //prepare_node(value.function, "ICompiledMethodCallNode.function"); prepare_string_node(value.last_result_function_call.ToString(), s + "last_result_function_call"); //prepare_node(value.obj, "ICompiledMethodCallNode.obj"); prepare_collection(value.real_parameters, s + "real_parametrs", "real_parametrs", value.real_parameters.Length); prepare_node(value.type, s + "type"); prepare_string_node(value.virtual_call.ToString(), s + "virtual_call"); }
public void visit(ICompiledMethodCallNode value) { StringBuilder bodyBlock = new StringBuilder(""); foreach (IExpressionNode nodeParameter in value.real_parameters) { nodeParameter.visit(this); bodyBlock.Append(ISemanticNodeConverter.SourceTextBuilder.GetNodeFromStack()); if (value.real_parameters[value.real_parameters.Length - 1] != nodeParameter) bodyBlock.Append(", "); } if (bodyBlock.Length == 0) bodyBlock.Append("%empty%"); ISemanticNodeConverter.SourceTextBuilder.AddNodeInToStack(bodyBlock.ToString()); value.obj.visit(this); ISemanticNodeConverter.SourceTextBuilder.AddNodeInToStack(ISemanticNodeConverter.ConvertPABCNETNodeCompMethodCall("comp_method_call", value)); }