Files
swift-mirror/validation-test/IDE/crashers_fixed/084-swift-parser-consumedecl.swift
Argyrios Kyrtzidis fc678740db [code-completion] Avoid a tentantive parse when in code-completion mode and make sure CodeCompletionExpr has a token range.
The tentantive parse is used for diagnostic purposes but can cause code-completion to delay the same decl twice.
The range of CodeCompletionExpr was previously character range which invalidated invariants of the AST.

Fixes:
	validation-test/IDE/crashers_fixed/084-swift-parser-consumedecl.swift
	validation-test/IDE/crashers_fixed/104-swift-gettypeofcompletioncontextexpr.swift
2016-12-05 17:09:49 -08:00

2 lines
112 B
Swift

// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
let:n(f{var _=#^A^#