We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8577c6b + 8dec9ad commit 580e618Copy full SHA for 580e618
lib/ASTGen/Sources/ASTGen/Bridge.swift
@@ -20,7 +20,7 @@ extension BridgedSourceLoc {
20
at position: AbsolutePosition,
21
in buffer: UnsafeBufferPointer<UInt8>
22
) {
23
- precondition(position.utf8Offset >= 0 && position.utf8Offset < buffer.count)
+ precondition(position.utf8Offset >= 0 && position.utf8Offset <= buffer.count)
24
self = SourceLoc_advanced(BridgedSourceLoc(raw: buffer.baseAddress!), SwiftInt(position.utf8Offset))
25
}
26
test/SourceKit/CursorInfo/at_eof_in_macro.swift
@@ -0,0 +1,3 @@
1
+// RUN: %sourcekitd-test -req=cursor -pos=3:37 %s -- %s
2
+@freestanding(expression)
3
+macro powerAssert() = #externalMacro
0 commit comments