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

rokucommunity / vscode-brightscript-language / 30100866380

24 Jul 2026 02:24PM UTC coverage: 60.103% (+0.2%) from 59.908%
30100866380

Pull #802

github

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

2593 of 4745 branches covered (54.65%)

Branch coverage included in aggregate %.

64 of 102 new or added lines in 20 files covered. (62.75%)

4073 of 6346 relevant lines covered (64.18%)

43.71 hits per line

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

61.29
/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
import { createLogger } from './logging';
1✔
12

13
const logger = createLogger('BrightScriptDeclaration');
1✔
14

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

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

31
    readonly isGlobal = true;
13✔
32

33
    get containerName(): string | undefined {
34
        return this.container?.name;
2!
35
    }
36

37
    public visible(position: Position): boolean {
38
        return true;
×
39
        // return this.container === undefined || this.container.bodyRange.contains(position);
40
    }
41

42
    public getDocumentUri(): Uri {
43
        if (this.kind === SymbolKind.File) {
×
44
            return this.uri;
×
45
        } else if (this.container) {
×
46
            return this.container.getDocumentUri();
×
47
        } else {
NEW
48
            logger.log('getDocumentUri: ERROR could not find container for symbol' + this);
×
49
        }
50
    }
51

52
    public getLocation(): Location {
53
        return new Location(this.getDocumentUri(), this.nameRange);
×
54
    }
55

56
}
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