Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
141 lines (85 loc) · 3.39 KB

File metadata and controls

141 lines (85 loc) · 3.39 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
namespace LOCAL_REFERENCE_TESTS
{
// TEST: local symbol activation
// START ----------------------------------------------------------------------
void local_symbols()
{
for (int i = 0; i < 10; i++) // <- ACTION: click on i
{
i++;
}
}
// RESULTS 1:
// - All 4 locations of i are highlighted
// - Each line with a reference shows a line highlight
// - The local reference navigation appears at the top showing "4 local references"
// ACTION 2: <click here>
// RESULTS 2:
// - The local references disappear
// - The local reference navigation disappears
// END ------------------------------------------------------------------------
// TEST: scope start and end brackets activation
// START ----------------------------------------------------------------------
void scope_start_and_end()
{
for (int i = 0; i < 10; i++)
{ // <- ACTION 1: click on {
i++;
}
} // <- ACTION 2: click on }
// RESULT 1: The start and end curly brackets of the scope are highlighted same as local symbols
// RESULT 2: Same behavior
// END ------------------------------------------------------------------------
// TEST: local reference navigation for local symbols
// START ----------------------------------------------------------------------
void local_reference_navigation()
{
for (int i = 0; i < 10; i++) // <- ACTION 1: click on i
{
/* RESULT 2: view scrolls here when this reference is active -> */ i--;
i++;
}
}
// ACTION 2: use local reference navigation at top to iterate all 5 references back and forward
// RESULTS 2:
// - Each reference is separately highlighted and the view scrolled if necessary
// - The local reference navigation shows "X/5 local references" while navigating
// ACTION 3: Use the menu actions "Edit -> Next Local Reference" and "Edit -> Previous Local Reference" and their shortcuts
// RESULT 3: Same behavior as with buttons
// END ------------------------------------------------------------------------
// TEST: local symbol activation in snippet mode
// START ----------------------------------------------------------------------
void some_referenced_function() { } // <- ACTION 1: activate function
// ACTION 2: switch to snippet mode
void local_reference_navigation_snippet_mode()
{
some_referenced_function();
for (int i = 0; i < 10; i++) // <- ACTION 3: click on i
/*
// RESULT 3: 3 local references are active
// ACTION 4: Expand snippet to full scope of function at the snippet bottom
*/
i++;
}
// RESULT 4: 4 local references are active
// END ------------------------------------------------------------------------
// TEST: local reference navigation for edges
// START ----------------------------------------------------------------------
void some_called_function() {} // <- ACTION 1: activate function
void local_reference_edge_navigation()
{
some_called_function();
/* RESULT 3: view scrolls here -> */ some_called_function();
some_called_function();
}
/*
// ACTION 2: click on the call edge between the two functions in the graph
// RESULT 2: 3 local references are active
// ACTION 3: repeat ACTION 2
// RESULTS 3:
// - The references are iterated in forward direction
// - Each reference is separately highlighted and the view scrolled if necessary
// - The local reference navigation shows "X/3 local references" while navigating
*/
// END ------------------------------------------------------------------------
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.