Skip to content

Commit

Permalink
Fix crash on missing node type
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Nov 20, 2023
1 parent c3d93c5 commit e6b7997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AstValidationSegmenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class AstValidationSegmenter {
const options: GetTypeOptions = { flags: flag, onlyCacheResolvedTypes: true, typeChain: typeChain };

const nodeType = expression.getType(options);
if (!nodeType.isResolvable()) {
if (!nodeType?.isResolvable()) {
let symbolsSet: Set<UnresolvedSymbol>;
if (!assignedSymbols?.has(typeChain[0].name.toLowerCase())) {
if (!this.unresolvedSegmentsSymbols.has(segment)) {
Expand Down

0 comments on commit e6b7997

Please sign in to comment.