Skip to content

Commit

Permalink
Update changelog for v1.0.0-alpha.38
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Oct 1, 2024
1 parent c5aec95 commit 8262a61
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0



## [1.0.0-alpha.38](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.37...v1.0.0-alpha.38) - 2024-10-01
### Changed
- upgrade to [[email protected]](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha38---2024-10-01)
### Fixed
- crash when comment is missing trivia array ([#134](https://github.com/rokucommunity/bslint/pull/134))



## [1.0.0-alpha.37](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.36...v1.0.0-alpha.37) - 2024-09-25
### Changed
- upgrade to [[email protected].36](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha37---2024-09-25)
- upgrade to [[email protected].37](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha37---2024-09-25)
### Fixed
- Conditional compile code flow - var tracking (#132)
- Conditional compile code flow - var tracking ([#132](https://github.com/rokucommunity/bslint/pull/132))



Expand Down
14 changes: 7 additions & 7 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.37",
"brighterscript": "^1.0.0-alpha.38",
"chai": "^4.3.6",
"coveralls-next": "^4.2.0",
"eslint": "^7.7.0",
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/trackCodeFlow/varTracking.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BscFile, FunctionExpression, BsDiagnostic, Range, isForStatement, isForEachStatement, isIfStatement, isAssignmentStatement, isNamespaceStatement, NamespaceStatement, Expression, isVariableExpression, isBinaryExpression, TokenKind, Scope, CallableContainerMap, DiagnosticSeverity, isLiteralInvalid, isWhileStatement, isCatchStatement, isLabelStatement, isGotoStatement, ParseMode, util, isMethodStatement, isTryCatchStatement, isConditionalCompileStatement } from 'brighterscript';
import { BscFile, FunctionExpression, BsDiagnostic, Range, isForStatement, isForEachStatement, isIfStatement, isAssignmentStatement, isNamespaceStatement, NamespaceStatement, Expression, isVariableExpression, isBinaryExpression, TokenKind, Scope, CallableContainerMap, DiagnosticSeverity, isLiteralInvalid, isWhileStatement, isCatchStatement, isLabelStatement, isGotoStatement, ParseMode, util, isMethodStatement, isTryCatchStatement, isConditionalCompileStatement, VariableExpression } from 'brighterscript';
import { LintState, StatementInfo, NarrowingInfo, VarInfo, VarRestriction } from '.';
import { PluginContext } from '../../util';
import { Location } from 'vscode-languageserver-types';
Expand Down Expand Up @@ -222,7 +222,7 @@ export function createVarLinter(
// value = stat.value;
setLocal(state.parent, stat.tokens.name, isForStatement(state.parent.stat) ? VarRestriction.Iterator : undefined);
} else if (isCatchStatement(stat) && state.parent) {
setLocal(curr, stat.tokens.exceptionVariable, VarRestriction.CatchedError);
setLocal(curr, (stat.exceptionVariableExpression as VariableExpression)?.tokens?.name, VarRestriction.CatchedError);
} else if (isLabelStatement(stat) && !foundLabelAt) {
foundLabelAt = stat.location.range.start.line;
} else if (foundLabelAt && isGotoStatement(stat) && state.parent) {
Expand Down

0 comments on commit 8262a61

Please sign in to comment.