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

rokucommunity / brighterscript / #9871

pending completion
#9871

push

web-flow
Bump xml2js from 0.4.23 to 0.5.0 (#790)

Bumps [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js) from 0.4.23 to 0.5.0.
- [Release notes](https://github.com/Leonidas-from-XIV/node-xml2js/releases)
- [Commits](https://github.com/Leonidas-from-XIV/node-xml2js/commits/0.5.0)

---
updated-dependencies:
- dependency-name: xml2js
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

5527 of 6734 branches covered (82.08%)

Branch coverage included in aggregate %.

8406 of 9073 relevant lines covered (92.65%)

1616.37 hits per line

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

29.41
/src/types/CustomType.ts
1
import { isCustomType, isDynamicType } from '../astUtils/reflection';
1✔
2
import type { BscType } from './BscType';
3

4
export class CustomType implements BscType {
1✔
5

6
    constructor(public name: string) {
97✔
7
    }
8

9
    public toString() {
10
        return this.name;
1✔
11
    }
12

13
    public toTypeString(): string {
14
        return 'object';
2✔
15
    }
16

17
    public isAssignableTo(targetType: BscType) {
18
        //TODO for now, if the custom types have the same name, assume they're the same thing
19
        if (isCustomType(targetType) && targetType.name === this.name) {
×
20
            return true;
×
21
        } else if (isDynamicType(targetType)) {
×
22
            return true;
×
23
        } else {
24
            return false;
×
25
        }
26
    }
27

28
    public isConvertibleTo(targetType: BscType) {
29
        return this.isAssignableTo(targetType);
×
30
    }
31
}
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

© 2025 Coveralls, Inc