Files
swift-mirror/test/incrParse/inserted_text_starts_identifier.swift
Rintaro Ishizaki 1f563b3716 [incrParse] Fix SyntaxParsingCache::translateToPreEditPosition()
If the position is in the region that is inserted by the edits,
'pre-edit' position shouldn't exist. So we cannot reuse the node at the
position.

rdar://problem/45259469
https://bugs.swift.org/browse/SR-8995
2018-11-06 00:27:19 +09:00

7 lines
204 B
Swift

// RUN: %empty-directory(%t)
// RUN: %validate-incrparse %s --test-case STRING
// SR-8995 rdar://problem/45259469
self = <<STRING<|||_ _>>>foo(1)[object1, object2] + o bar(1)