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

rokucommunity / brighterscript / #15048

01 Jan 2026 11:17PM UTC coverage: 87.048% (-0.9%) from 87.907%
#15048

push

web-flow
Merge 02ba2bb57 into 2ea4d2108

14498 of 17595 branches covered (82.4%)

Branch coverage included in aggregate %.

192 of 261 new or added lines in 12 files covered. (73.56%)

897 existing lines in 48 files now uncovered.

15248 of 16577 relevant lines covered (91.98%)

24112.76 hits per line

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

91.3
/src/types/DynamicType.ts
1
import type { TypeCompatibilityData } from '../interfaces';
2
import { isDynamicType, isUninitializedType, isVoidType } from '../astUtils/reflection';
1✔
3
import { BscType } from './BscType';
1✔
4
import { BscTypeKind } from './BscTypeKind';
1✔
5
import { BuiltInInterfaceAdder } from './BuiltInInterfaceAdder';
1✔
6
import type { GetSymbolTypeOptions } from '../SymbolTable';
7

8
export class DynamicType extends BscType {
1✔
9

10
    public readonly kind = BscTypeKind.DynamicType;
30✔
11

12
    public static readonly instance = new DynamicType();
1✔
13

14
    public isBuiltIn = true;
30✔
15

16
    get returnType() {
17
        return DynamicType.instance;
779✔
18
    }
19

20
    public isAssignableTo(targetType: BscType) {
21
        //everything can be dynamic, so as long as a type is provided, this is true
UNCOV
22
        return !!targetType;
×
23
    }
24

25
    /**
26
     * The dynamic type is convertible to everything.
27
     */
28
    public isTypeCompatible(targetType: BscType, data?: TypeCompatibilityData) {
29
        //everything can be dynamic, so as long as a type is provided, this is true
30
        if (isVoidType(targetType) || isUninitializedType(targetType)) {
627✔
31
            return false;
1✔
32
        }
33
        return !!targetType;
626✔
34
    }
35

36
    public toString() {
37
        return 'dynamic';
9,787✔
38
    }
39

40
    public toTypeString(): string {
41
        return this.toString();
4✔
42
    }
43

44
    public isEqual(targetType: BscType) {
45
        return isDynamicType(targetType);
58✔
46
    }
47

48
    getMemberType(memberName: string, options: GetSymbolTypeOptions) {
49
        return DynamicType.instance;
692✔
50
    }
51

52
    getCallFuncType(name: string, options: GetSymbolTypeOptions) {
UNCOV
53
        return DynamicType.instance;
×
54
    }
55

56

57
}
58

59
BuiltInInterfaceAdder.primitiveTypeInstanceCache.set('dynamic', DynamicType.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