DubComponent.resolveDiagnosticRange

Tries to find a suitable code byte range where a given dub build issue applies to.

class DubComponent
int[2]
resolveDiagnosticRange
(
scope const(char)[] code
,,
scope const(char)[] diagnostic
)

Return Value

Type: int[2]

[pos, pos] if not found, otherwise range in bytes which might not contain the position at all.

Meta