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.
1 parent 4433a9f commit c4d76fdCopy full SHA for c4d76fd
utils/line-directive
@@ -11,6 +11,12 @@
11
#
12
# ----------------------------------------------------------------------------
13
from __future__ import print_function
14
+import bisect
15
+import os
16
+import re
17
+import shlex
18
+import subprocess
19
+import sys
20
21
usage = '''"#sourceLocation" is a directive used by tools like the Swift
22
compiler and debugger to adjust the lines reported in diagnostics and to
@@ -48,13 +54,6 @@ You do this:
48
54
line-directive foo.swift bar.swift -- swiftc foo.swift bar.swift baz.swift
49
55
'''
50
56
51
-import bisect
52
-import os
53
-import re
-import shlex
-import subprocess
-import sys
57
-
58
line_pattern = re.compile(
59
r'^// ###sourceLocation\(file:\s*"([^"]+)",\s*line:\s*([0-9]+)\s*\)')
60
0 commit comments