private getLogicalLocations()

in src/axe-raw-sarif-converter.ts [189:201]


    private getLogicalLocations(
        node: AxeRawNodeResult,
    ): Sarif.LogicalLocation[] {
        const selector = this.getSelectorFromRawNode(node);
        const xpath = this.getXpathFromRawNode(node);
        const logicalLocations: Sarif.LogicalLocation[] = [
            this.formatLogicalLocation(selector),
        ];
        if (xpath) {
            logicalLocations.push(this.formatLogicalLocation(xpath));
        }
        return logicalLocations;
    }