Esempio n. 1
0
 void CompileFunctions()
 {
     foreach (var functionDeclaration in programNode.Declarations.OfType <FunctionDeclaration>())
     {
         var md = functionMethodDefinitionByNode[functionDeclaration];
         MethodBodyCompiler.Compile(sourceFile, types, md, functionDeclaration.Body.Statements);
     }
 }
Esempio n. 2
0
 void CompileClassMethods()
 {
     foreach (var classDeclaration in programNode.Declarations.OfType <ClassDeclaration>())
     {
         var td = typeDefinitionByName[classDeclaration.Name];
         foreach (var classMethod in classDeclaration.Members.OfType <ClassMethod>())
         {
             var md = classMethodDefinitionByNode[classMethod];
             MethodBodyCompiler.Compile(sourceFile, types, md, classMethod.Body.Statements);
         }
     }
 }
Esempio n. 3
0
 void CompileMainMethod()
 {
     MethodBodyCompiler.Compile(sourceFile, types, MainMethod, programNode.Statements);
 }