• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rokucommunity / vscode-brightscript-language / 30096694707

24 Jul 2026 01:23PM UTC coverage: 59.949% (+0.04%) from 59.908%
30096694707

Pull #802

github

web-flow
Merge 333fa7808 into e465804e3
Pull Request #802: Route extension logs through the BrightScript Extension output channel

2592 of 4745 branches covered (54.63%)

Branch coverage included in aggregate %.

19 of 23 new or added lines in 3 files covered. (82.61%)

732 existing lines in 18 files now uncovered.

4036 of 6311 relevant lines covered (63.95%)

43.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

58.62
/src/BrightScriptDeclaration.ts
1
import type {
2
    Position,
3
    Range,
4
    Uri
5
} from 'vscode';
6
import {
1✔
7
    Location,
8
    SymbolKind
9
} from 'vscode';
10
import * as vscode from 'vscode';
1✔
11

12
export class BrightScriptDeclaration {
1✔
13
    constructor(
14
        public name: string,
13✔
15
        public kind: SymbolKind,
13✔
16
        public container: BrightScriptDeclaration | undefined,
13✔
17
        public params: string[],
13✔
18
        public nameRange: Range,
13✔
19
        public bodyRange: Range,
13✔
20
        public uri?: Uri) {
13✔
21
    }
22

23
    public static fromUri(uri: Uri) {
24
        let documentName = uri.path;
4✔
25
        return new BrightScriptDeclaration(documentName, vscode.SymbolKind.File, undefined, [], new vscode.Range(0, 0, 0, 0), new vscode.Range(0, 0, 0, 0), uri);
4✔
26
    }
27

28
    readonly isGlobal = true;
13✔
29

30
    get containerName(): string | undefined {
31
        return this.container?.name;
2!
32
    }
33

34
    public visible(position: Position): boolean {
UNCOV
35
        return true;
×
36
        // return this.container === undefined || this.container.bodyRange.contains(position);
37
    }
38

39
    public getDocumentUri(): Uri {
UNCOV
40
        if (this.kind === SymbolKind.File) {
×
UNCOV
41
            return this.uri;
×
UNCOV
42
        } else if (this.container) {
×
43
            return this.container.getDocumentUri();
×
44
        } else {
45
            console.log('getDocumentUri: ERROR could not find container for symbol' + this);
×
46
        }
47
    }
48

49
    public getLocation(): Location {
UNCOV
50
        return new Location(this.getDocumentUri(), this.nameRange);
×
51
    }
52

53
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc