public void CompileInlineFunction(InlineFunction inlineFn) { if (inlineFn.IsLambda()) { DumpLambda(inlineFn.Function); } else { textWriter.PushPrefix(); textWriter.Write("function "); bool wasBlockInline = isBlockInline; isBlockInline = true; DumpFunction(inlineFn.Function); isBlockInline = wasBlockInline; textWriter.PopPrefix(); } }
public void CompileInlineFunction(InlineFunction inline) { XmlElement previousElement = currentElement; XmlElement tmpElement = document.CreateElement("InlineFunction"); XmlElement paramsElement = document.CreateElement("Parameters"); ProcessParameters(paramsElement, inline.Function.Parameters); tmpElement.AppendChild(paramsElement); currentElement = document.CreateElement("Body"); inline.Function.Body.AcceptCompiler(this); tmpElement.AppendChild(currentElement); previousElement.AppendChild(tmpElement); currentElement = previousElement; }