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

rokucommunity / brighterscript / #15221

22 Feb 2026 02:27AM UTC coverage: 87.213% (+0.01%) from 87.199%
#15221

push

web-flow
Merge d0c9a16a7 into 1556715dd

14752 of 17875 branches covered (82.53%)

Branch coverage included in aggregate %.

107 of 117 new or added lines in 19 files covered. (91.45%)

160 existing lines in 15 files now uncovered.

15497 of 16809 relevant lines covered (92.19%)

25606.73 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;
38✔
9

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

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

20
        return this.wrappedType.isTypeCompatible(targetType, data);
11✔
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();
69✔
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