MichaReiser/speedy.js

View on GitHub
packages/compiler/src/code-generation/code-generators/if-statement-code-generator.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function generate has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    generate(ifStatement: ts.IfStatement, context: CodeGenerationContext): void {
        const fun = context.scope.enclosingFunction;
        let thenBlock = llvm.BasicBlock.create(context.llvmContext, "if.then");
        let elseBlock = llvm.BasicBlock.create(context.llvmContext, "if.else");
        const end = llvm.BasicBlock.create(context.llvmContext, "if.end");

    There are no issues that match your filters.

    Category
    Status