We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ab6472 commit 2ccb251Copy full SHA for 2ccb251
Sources/SwiftSyntax/Raw/RawSyntax.swift
@@ -424,10 +424,6 @@ extension RawSyntax {
424
presence: SourcePresence,
425
arena: SyntaxArena
426
) -> RawSyntax {
427
- assert(arena.contains(text: text) || kind.defaultText?.baseAddress == text.baseAddress,
428
- "token text must be managed by the arena, or known default text for the token")
429
- assert(triviaPieces.allSatisfy({$0.storedText.map({arena.contains(text: $0)}) ?? true}),
430
- "trivia text must be managed by the arena")
431
let payload = RawSyntaxData.MaterializedToken(
432
tokenKind: kind,
433
tokenText: text,
0 commit comments