Пример #1
0
 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();
     }
 }