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

rokucommunity / brighterscript / #15903

11 May 2026 06:41PM UTC coverage: 86.896% (-2.2%) from 89.094%
#15903

push

web-flow
Merge 70dfd6181 into ce68f5cb7

15597 of 18958 branches covered (82.27%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 3 files covered. (100.0%)

955 existing lines in 53 files now uncovered.

16351 of 17808 relevant lines covered (91.82%)

27326.16 hits per line

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

95.0
/src/types/VoidType.ts
1
import { isDynamicType, isObjectType, isVoidType } from '../astUtils/reflection';
1✔
2
import { BscType } from './BscType';
1✔
3
import { BscTypeKind } from './BscTypeKind';
1✔
4
import { isUnionTypeCompatible } from './helpers';
1✔
5
import { BuiltInInterfaceAdder } from './BuiltInInterfaceAdder';
1✔
6
import type { GetTypeOptions, TypeCompatibilityData } from '../interfaces';
7
import { DynamicType } from './DynamicType';
1✔
8

9
export class VoidType extends BscType {
1✔
10

11
    public readonly kind = BscTypeKind.VoidType;
16✔
12

13
    public static instance = new VoidType();
1✔
14

15
    public isBuiltIn = true;
16✔
16

17
    public isTypeCompatible(targetType: BscType, data?: TypeCompatibilityData) {
18
        return (
47✔
19
            isVoidType(targetType) ||
105✔
20
            isDynamicType(targetType) ||
21
            isObjectType(targetType) ||
22
            isUnionTypeCompatible(this, targetType, data)
23
        );
24
    }
25

26
    public toString() {
27
        return 'void';
1,147✔
28
    }
29

30
    public toTypeString(): string {
UNCOV
31
        return this.toString();
×
32
    }
33

34
    public isEqual(targetType: BscType) {
35
        return isVoidType(targetType);
17✔
36
    }
37

38
    getMemberType(memberName: string, options: GetTypeOptions) {
39
        return DynamicType.instance;
3✔
40
    }
41
}
42

43
BuiltInInterfaceAdder.primitiveTypeInstanceCache.set('void', VoidType.instance);
1✔
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