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