internal static void BuildYieldTargets(GeneratorCodeBlock g, out List<YieldTarget> topTargets, out int temps)
 {
     YieldLabelBuilder b = new YieldLabelBuilder();
     b.WalkNode(g.Body);
     topTargets = b._topTargets;
     temps = b._temps;
 }
Exemple #2
0
        protected internal override void PostWalk(GeneratorCodeBlock node)
        {
            int temps = node.BuildYieldTargets();

            AddGeneratorTemps(temps);
            ProcessAndPop(node);
        }
Exemple #3
0
 // GeneratorCodeBlock
 private void DefaultWalk(GeneratorCodeBlock node)
 {
     if (Walk(node))
     {
         WalkNode(node.Body);
     }
     PostWalk(node);
 }
        internal static void BuildYieldTargets(GeneratorCodeBlock g, out List <YieldTarget> topTargets, out int temps)
        {
            YieldLabelBuilder b = new YieldLabelBuilder();

            b.WalkNode(g.Body);
            topTargets = b._topTargets;
            temps      = b._temps;
        }
Exemple #5
0
 protected internal override bool Walk(GeneratorCodeBlock node)
 {
     Push(node);
     return(true);
 }
Exemple #6
0
 protected internal override void PostWalk(GeneratorCodeBlock node)
 {
     int temps = node.BuildYieldTargets();
     AddGeneratorTemps(temps);
     ProcessAndPop(node);
 }
Exemple #7
0
 protected internal override bool Walk(GeneratorCodeBlock node)
 {
     Push(node);
     return true;
 }
Exemple #8
0
 // GeneratorCodeBlock
 protected internal override bool Walk(GeneratorCodeBlock node)
 {
     return Walk((CodeBlock)node);
 }
 // GeneratorCodeBlock
 protected internal override bool Walk(GeneratorCodeBlock node)
 {
     return(Walk((CodeBlock)node));
 }
Exemple #10
0
 // GeneratorCodeBlock
 private void DefaultWalk(GeneratorCodeBlock node)
 {
     if (Walk(node)) {
         WalkNode(node.Body);
     }
     PostWalk(node);
 }
Exemple #11
0
 // GeneratorCodeBlock
 private void Dump(GeneratorCodeBlock node)
 {
     Out(".generator", Flow.Space);
     DumpBlock(node);
 }