Beispiel #1
0
 internal override void Emit(StaticStmt node, CodeGenerator codeGenerator)
 {
     Statistics.AST.AddNode("StaticStmt");
     foreach (StaticVarDecl svd in node.StVarList)
     {
         StaticVarDeclCompilerHelper.Emit(svd, codeGenerator);
     }
 }
Beispiel #2
0
            internal override Statement Analyze(StaticStmt node, Analyzer analyzer)
            {
                if (analyzer.IsThisCodeUnreachable())
                {
                    analyzer.ReportUnreachableCode(node.Span);
                    return(EmptyStmt.Unreachable);
                }

                foreach (StaticVarDecl svd in node.StVarList)
                {
                    StaticVarDeclCompilerHelper.Analyze(svd, analyzer);
                }

                return(node);
            }