startLocation(converter:afterLeadingTrivia:)

The starting location, in the provided file, of this Syntax node.

SourceLocation.swift:434
func startLocation(converter: SourceLocationConverter, afterLeadingTrivia: Bool = true) -> SourceLocation

Parameters

converter

The SourceLocationConverter that was previously initialized using the root tree of this node.

afterLeadingTrivia

Whether to skip leading trivia when getting the node’s location. Defaults to true.