Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code flow doesn't properly handle conditional compile #127

Open
TwitchBronBron opened this issue Aug 2, 2024 · 0 comments
Open

Code flow doesn't properly handle conditional compile #127

TwitchBronBron opened this issue Aug 2, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@TwitchBronBron
Copy link
Member

TwitchBronBron commented Aug 2, 2024

image

it.only('tracks code flow between conditional compile blocks', () => {
    program.setFile('source/main.brs', `
        sub main()
            #if true
                text1 = "a"
            #else
                text1 = "b"
            #end if
            print text1
        end sub
    `);
    program.validate();

    expect(program.getDiagnostics()).to.eql([]);
});
@TwitchBronBron TwitchBronBron added the bug Something isn't working label Aug 2, 2024
@TwitchBronBron TwitchBronBron added this to the v1.0.0 milestone Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant