Files
swift-mirror/validation-test/IDE/crashers_2_fixed/0015-pound-if-without-endif.swift
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

5 lines
106 B
Swift

// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
#if a
#^A^#