-
Notifications
You must be signed in to change notification settings - Fork 29
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
Upgrading to Brighterscript v1 #289
Upgrading to Brighterscript v1 #289
Conversation
@@ -115,3 +129,12 @@ export function getScopeForSuite(testSuite: TestSuite) { | |||
return testSuite.file.program.getFirstScopeForFile(testSuite.file); | |||
} | |||
} | |||
|
|||
export function getFileLookups(file: BrsFile): CachedLookups { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New function to replace file.parser.references
(bsFile as BrsFile).parser.statements.push(); | ||
bsFile.needsTranspiled = true; | ||
} | ||
//let bsFile = program.getFile(suite.bsPkgPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is needed anymore in v1
@@ -14,7 +14,10 @@ function addDiagnostic( | |||
severity: DiagnosticSeverity = DiagnosticSeverity.Error | |||
) { | |||
endLine = endLine === -1 ? startLine : endLine; | |||
file.addDiagnostics([createDiagnostic(file, code, message, startLine, startCol, endLine, endCol, severity)]); | |||
file.program.diagnostics.register( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using new diagnostics manager
@@ -15,18 +15,18 @@ namespace rooibos | |||
protected hasIgnoredTests = false | |||
protected isSolo = false | |||
protected isIgnored = false | |||
protected noCatch = false | |||
public noCatch = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many changes in the .BS files to support proper typing and to fix validation errors
tests/bsconfig.json
Outdated
@@ -3,7 +3,8 @@ | |||
"files": [ | |||
"manifest", | |||
"source/**/*.*", | |||
"components/**/*.*" | |||
"components/**/*.*", | |||
{ "src": "../../framework/src/source/**/*", "dest": "source/rooibos" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be able to import the framework in the tests
…ipt for running rooibos tests from command line
Goals:
Also: