sourceRange(converter:afterLeadingTrivia:afterTrailingTrivia:)

The source range, in the provided file, of this Syntax node.

SourceLocation.swift:468
func sourceRange(converter: SourceLocationConverter, afterLeadingTrivia: Bool = true, afterTrailingTrivia: Bool = false) -> SourceRange

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 start location. Defaults to true.

afterTrailingTrivia

Whether to skip trailing trivia when getting the node’s end location. Defaults to false.