Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/ast-grep/rule-tests/__snapshots__/cmhasprefix-char-snapshot.yml
5127 views
1
id: cmhasprefix-char
2
snapshots:
3
cmHasPrefix(haystack, "'"):
4
fixed: cmHasPrefix(haystack, '\'')
5
labels:
6
- source: '"''"'
7
style: primary
8
start: 22
9
end: 25
10
- source: cmHasPrefix(haystack, "'")
11
style: secondary
12
start: 0
13
end: 26
14
- source: ','
15
style: secondary
16
start: 20
17
end: 21
18
cmHasPrefix(haystack, "\n"):
19
fixed: cmHasPrefix(haystack, '\n')
20
labels:
21
- source: '"\n"'
22
style: primary
23
start: 22
24
end: 26
25
- source: cmHasPrefix(haystack, "\n")
26
style: secondary
27
start: 0
28
end: 27
29
- source: ','
30
style: secondary
31
start: 20
32
end: 21
33
cmHasPrefix(haystack, "a"):
34
fixed: cmHasPrefix(haystack, 'a')
35
labels:
36
- source: '"a"'
37
style: primary
38
start: 22
39
end: 25
40
- source: cmHasPrefix(haystack, "a")
41
style: secondary
42
start: 0
43
end: 26
44
- source: ','
45
style: secondary
46
start: 20
47
end: 21
48
49