in Sources/SwiftSyntax/SyntaxClassifier.swift [44:53]
func classify(offset: Int) -> SyntaxClassifiedRange {
let range = ByteSourceRange(offset: offset, length: length)
switch self.kind {
case .lineComment: return .init(kind: .lineComment, range: range)
case .blockComment: return .init(kind: .blockComment, range: range)
case .docLineComment: return .init(kind: .docLineComment, range: range)
case .docBlockComment: return .init(kind: .docBlockComment, range: range)
default: return .init(kind: .none, range: range)
}
}