Skip to content

Commit

Permalink
test: ignore two lines for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed Sep 30, 2023
1 parent a7767c8 commit 6918d90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/language/scoping/safe-ds-scope-computation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import {
isSdsTypeParameter,
isSdsTypeParameterList,
SdsClass,
SdsEnum, SdsEnumVariant,
SdsEnum,
SdsEnumVariant,
SdsTypeParameter,
} from '../generated/ast.js';

Expand All @@ -28,7 +29,7 @@ export class SafeDsScopeComputation extends DefaultScopeComputation {
this.processSdsEnum(node, document, scopes);
} else if (isSdsEnumVariant(node)) {
this.processSdsEnumVariant(node, document, scopes);
}else if (isSdsTypeParameter(node)) {
} else if (isSdsTypeParameter(node)) {
this.processSdsTypeParameter(node, document, scopes);
} else {
super.processNode(node, document, scopes);
Expand Down Expand Up @@ -73,6 +74,7 @@ export class SafeDsScopeComputation extends DefaultScopeComputation {
private processSdsEnumVariant(node: SdsEnumVariant, document: LangiumDocument, scopes: PrecomputedScopes): void {
const name = this.nameProvider.getName(node);
if (!name) {
/* c8 ignore next 2 */
return;
}

Expand Down

0 comments on commit 6918d90

Please sign in to comment.