Exemple #1
0
        public static void Generate(CodeMemberMethod method, HashSet <string> globals)
        {
            var gen = new LocalVariableGenerator(method.Parameters, method.Statements, globals);

            gen.Analyze(new List <CodeStatement>(), method.Statements);
            gen.Generate();
        }
Exemple #2
0
        public static void Generate(CodeMemberMethod method)
        {
            var gen = new LocalVariableGenerator(method);

            gen.Analyze(new List <CodeStatement>(), method.Statements);
            gen.Generate();
        }
Exemple #3
0
        public static void Generate(List <CodeParameterDeclarationExpression> parameters, List <CodeStatement> statements, HashSet <string> globals)
        {
            parameters = parameters ?? new List <CodeParameterDeclarationExpression>();
            var gen = new LocalVariableGenerator(parameters, statements, globals);

            gen.Analyze(new List <CodeStatement>(), statements);
            gen.Generate();
        }