mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously, it used to use length from AST. Because AST doesn't necessarily holds actual source information, it may emits inacculate syntax info which cause mis-coloring or compiler crash in the worst case. Instead, use collected token info which contains actual token length. https://bugs.swift.org/browse/SR-8378 rdar://problem/42653982
52 KiB
52 KiB