Commit Graph

5 Commits

Author SHA1 Message Date
Alex Hoppen
32eff21977 [IDE] Remove "Begin completions" and "End completions" from test cases
These test lines weren't actually providing any value and were annoying to write. Let's jut remove them.
2023-03-22 09:07:17 -07:00
Rintaro Ishizaki
bb3edd5dde [CodeCompletion] contextual attribute completion only on the same line
It's common to have decls on consecutive lines. Better to show too many
attributes than too few.
2019-06-21 14:03:09 -07:00
Rintaro Ishizaki
c5a84565d7 [Parse] Fix end location of dummy top level code for code completion
Fix ASTVerifier error for end location of 'IfConfigDecl'.
Previously, for:
```
  #if
  // something
  <COMPLETE>
```
End location of the dummy body of 'TopLevelCodeDecl' was at the eof, but the
end loc of the 'IfConfigDecl' was at the code-completion token. That
caused the ASTVerifier error "invalid IfConfigStmt end location".

https://bugs.swift.org/browse/SR-2364
rdar://problem/41217187
2018-07-30 20:23:26 +09:00
Ben Langmuir
e076330a88 Disable a check that relies on assertions in test/IDE/complete_pound_decl.swift
The test was expecting a crash (covered by SR-2364), but it only happens
with assertions enabled.  Disable it for now, since it's causing
failures in no-asserts builds.

rdar://problem/28679273
2016-10-10 09:45:17 -07:00
Rintaro Ishizaki
56f7274cdf [CodeCompletion] Testcase for completion combined with "#if" directive 2016-08-16 17:55:16 +09:00