Skip to content

Commit

Permalink
upgrade to bsc 1.0.0-alpha.37
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Sep 25, 2024
1 parent 3f893d0 commit 5af5184
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@types/node": "^14.6.0",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"brighterscript": "^1.0.0-alpha.36",
"brighterscript": "^1.0.0-alpha.37",
"chai": "^4.3.6",
"coveralls-next": "^4.2.0",
"eslint": "^7.7.0",
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/codeStyle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export default class CodeStyle implements CompilerPlugin {
validateFunctionStyle(fun: FunctionExpression, diagnostics: (BsDiagnostic)[]) {
const { severity } = this.lintContext;
const { namedFunctionStyle, anonFunctionStyle, typeAnnotations } = severity;
const style = fun.functionStatement ? namedFunctionStyle : anonFunctionStyle;
const style = fun.parent ? namedFunctionStyle : anonFunctionStyle;
const kind = fun.tokens.functionType.kind;
const hasReturnedValue = style === 'auto' || typeAnnotations !== 'off' ? this.getFunctionReturns(fun) : false;

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/trackCodeFlow/varTracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function createVarLinter(
args.set(name.toLowerCase(), { name: name, location: p.tokens.name.location, isParam: true, isUnsafe: false, isUsed: false });
});

if (isMethodStatement(fun.functionStatement)) {
if (isMethodStatement(fun.parent)) {
args.set('super', { name: 'super', location: null, isParam: true, isUnsafe: false, isUsed: true });
}

Expand Down

0 comments on commit 5af5184

Please sign in to comment.