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

rokucommunity / brighterscript / #15217

22 Feb 2026 02:08AM UTC coverage: 87.16% (+0.006%) from 87.154%
#15217

push

web-flow
Merge f6ff8a6fa into 1556715dd

14735 of 17873 branches covered (82.44%)

Branch coverage included in aggregate %.

104 of 115 new or added lines in 19 files covered. (90.43%)

162 existing lines in 15 files now uncovered.

15492 of 16807 relevant lines covered (92.18%)

25562.81 hits per line

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

78.13
/src/types/TypeStatementType.ts
1
import { BscType } from './BscType';
1✔
2
import type { GetTypeOptions, TypeCompatibilityData } from '../interfaces';
3
import { BscTypeKind } from './BscTypeKind';
1✔
4
import { isCallableType } from '../astUtils/reflection';
1✔
5

6
export class TypeStatementType extends BscType {
1✔
7

8
    public kind: BscTypeKind = BscTypeKind.TypeStatementType;
36✔
9

10
    constructor(public name: string, public wrappedType: BscType) {
36✔
11
        super();
36✔
12
    }
13

14
    public isTypeCompatible(targetType: BscType, data?: TypeCompatibilityData) {
15
        data = data || {};
9✔
16
        if (!data.expectedType) {
9!
17
            data.expectedType = this;
9✔
18
        }
19

20
        return this.wrappedType.isTypeCompatible(targetType, data);
9✔
21
    }
22

23
    public toString() {
24
        return this.name;
42✔
25
    }
26

27
    public toTypeString(): string {
UNCOV
28
        return this.wrappedType.toTypeString();
×
29
    }
30

31
    public isEqual(targetType: BscType) {
32
        return this.wrappedType.isEqual(targetType);
3✔
33
    }
34

35
    getMemberType(memberName: string, options: GetTypeOptions) {
36
        return this.wrappedType.getMemberType(memberName, options);
49✔
37
    }
38

39
    getMemberTable() {
40
        return this.wrappedType.getMemberTable();
66✔
41
    }
42

43
    addBuiltInInterfaces() {
44
        if (!this.hasAddedBuiltInInterfaces) {
1!
45
            this.wrappedType.addBuiltInInterfaces();
1✔
46
            this.hasAddedBuiltInInterfaces = true;
1✔
47
        }
48
    }
49

50
    getCallFuncType(name: string, options: GetTypeOptions): BscType {
UNCOV
51
        return this.wrappedType.getCallFuncType(name, options);
×
52
    }
53

54

55
    getCallFuncTable() {
UNCOV
56
        return this.wrappedType.getCallFuncTable();
×
57
    }
58

59
    get returnType() {
60
        if (isCallableType(this.wrappedType)) {
12!
61
            return this.wrappedType.returnType;
12✔
62
        }
NEW
63
        return undefined;
×
64
    }
65

66
}
67

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

© 2026 Coveralls, Inc