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

rokucommunity / brighterscript / #15690

29 Apr 2026 02:33PM UTC coverage: 88.914% (-0.2%) from 89.093%
#15690

push

web-flow
Merge eee7c17de into 39a003a10

8369 of 9908 branches covered (84.47%)

Branch coverage included in aggregate %.

32 of 63 new or added lines in 9 files covered. (50.79%)

10632 of 11462 relevant lines covered (92.76%)

2037.98 hits per line

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

80.0
/src/bscPlugin/codeActions/codeActionHelpers.ts
1
import type { Diagnostic } from 'vscode-languageserver';
2
import type { XmlFile } from '../../files/XmlFile';
3
import { util } from '../../util';
1✔
4

5
/**
6
 * Returns the position at which an `extends` attribute should be inserted for
7
 * a component that is missing one: after the last existing attribute, or after
8
 * the `<component` tag itself if there are no attributes yet.
9
 */
10
export function getMissingExtendsInsertPosition(file: XmlFile) {
1✔
11
    const { component } = file.parser.ast;
2✔
12
    return (component.attributes[component.attributes.length - 1] ?? component.tag).range.end;
2!
13
}
14

15
/**
16
 * Returns the delete change that removes the return value from a `return <expr>`
17
 * statement flagged by `voidFunctionMayNotReturnValue`. Leaves the bare `return`
18
 * keyword in place.
19
 */
20
export function getRemoveReturnValueChange(diagnostic: Diagnostic, filePath: string) {
1✔
NEW
21
    return {
×
22
        type: 'delete' as const,
23
        filePath: filePath,
24
        range: util.createRange(
25
            diagnostic.range.start.line,
26
            diagnostic.range.start.character + 'return'.length,
27
            diagnostic.range.end.line,
28
            diagnostic.range.end.character
29
        )
30
    };
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc