@@ -35,92 +35,187 @@ void Select()
35
35
var x = from a in sourceA select a . Method ( ) ;
36
36
// ^ definition local 0
37
37
// documentation ```cs\n? x\n```
38
+ // ^ definition local 1
39
+ // documentation ```cs\n? a\n```
38
40
// ^^^^^^^ reference scip-dotnet nuget . . Main/QuerySyntax#sourceA.
39
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#Select().a.
41
+ // ^ reference local 1
40
42
}
41
43
42
44
void Projection ( )
43
45
// ^^^^^^^^^^ definition scip-dotnet nuget . . Main/QuerySyntax#Projection().
44
46
// documentation ```cs\nprivate void QuerySyntax.Projection()\n```
45
47
{
46
48
var x = from a in sourceA select new { Name = a . Method ( ) } ;
47
- // ^ definition local 1
49
+ // ^ definition local 2
48
50
// documentation ```cs\n? x\n```
51
+ // ^ definition local 3
52
+ // documentation ```cs\n? a\n```
49
53
// ^^^^^^^ reference scip-dotnet nuget . . Main/QuerySyntax#sourceA.
50
- // ^^^^ reference local 3
51
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#Projection().a.
54
+ // ^^^^ reference local 5
55
+ // ^ reference local 3
52
56
var b = from a in x select a . Name ;
53
- // ^ definition local 4
57
+ // ^ definition local 6
54
58
// documentation ```cs\n? b\n```
55
- // ^ reference local 1
56
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#Projection().a.
59
+ // ^ definition local 7
60
+ // documentation ```cs\n? a\n```
61
+ // ^ reference local 2
62
+ // ^ reference local 7
57
63
}
58
64
59
65
void Where ( )
60
66
// ^^^^^ definition scip-dotnet nuget . . Main/QuerySyntax#Where().
61
67
// documentation ```cs\nprivate void QuerySyntax.Where()\n```
62
68
{
63
69
var x = from a in sourceA where a . Method ( ) . StartsWith ( "a" ) select a ;
64
- // ^ definition local 5
70
+ // ^ definition local 8
65
71
// documentation ```cs\n? x\n```
72
+ // ^ definition local 9
73
+ // documentation ```cs\n? a\n```
66
74
// ^^^^^^^ reference scip-dotnet nuget . . Main/QuerySyntax#sourceA.
67
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#Where().a.
68
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#Where().a.
75
+ // ^ reference local 9
76
+ // ^ reference local 9
69
77
}
70
78
71
79
void Let ( )
72
80
// ^^^ definition scip-dotnet nuget . . Main/QuerySyntax#Let().
73
81
// documentation ```cs\nprivate void QuerySyntax.Let()\n```
74
82
{
75
83
var x = from a in sourceA
76
- // ^ definition local 6
84
+ // ^ definition local 10
77
85
// documentation ```cs\n? x\n```
86
+ // ^ definition local 11
87
+ // documentation ```cs\n? a\n```
78
88
// ^^^^^^^ reference scip-dotnet nuget . . Main/QuerySyntax#sourceA.
79
89
let z = new { A = a . Method ( ) , B = a . Method ( ) }
80
- // ^ reference local 8
81
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#Let().a.
82
- // ^ reference local 9
83
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#Let().a.
90
+ // ^ definition local 12
91
+ // documentation ```cs\n? z\n```
92
+ // ^ reference local 14
93
+ // ^ reference local 11
94
+ // ^ reference local 15
95
+ // ^ reference local 11
84
96
select z ;
85
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#Let().z.
97
+ // ^ reference local 12
86
98
}
87
99
88
100
void Join ( )
89
101
// ^^^^ definition scip-dotnet nuget . . Main/QuerySyntax#Join().
90
102
// documentation ```cs\nprivate void QuerySyntax.Join()\n```
91
103
{
92
104
var x = from a in sourceA
93
- // ^ definition local 10
105
+ // ^ definition local 16
94
106
// documentation ```cs\n? x\n```
107
+ // ^ definition local 17
108
+ // documentation ```cs\n? a\n```
95
109
// ^^^^^^^ reference scip-dotnet nuget . . Main/QuerySyntax#sourceA.
96
110
join b in sourceB on a . Method ( ) equals b . Method ( )
111
+ // ^ definition local 18
112
+ // documentation ```cs\n? b\n```
97
113
// ^^^^^^^ reference scip-dotnet nuget . . Main/QuerySyntax#sourceB.
98
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#Join().a.
99
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#Join().b.
114
+ // ^ reference local 17
115
+ // ^ reference local 18
100
116
select new { A = a . Method ( ) , B = b . Method ( ) } ;
101
- // ^ reference local 8
102
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#Join().a.
103
- // ^ reference local 9
104
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#Join().b.
117
+ // ^ reference local 14
118
+ // ^ reference local 17
119
+ // ^ reference local 15
120
+ // ^ reference local 18
105
121
}
106
122
107
123
void MultipleFrom ( )
108
124
// ^^^^^^^^^^^^ definition scip-dotnet nuget . . Main/QuerySyntax#MultipleFrom().
109
125
// documentation ```cs\nprivate void QuerySyntax.MultipleFrom()\n```
110
126
{
111
127
var x = from a in sourceA
112
- // ^ definition local 11
128
+ // ^ definition local 19
113
129
// documentation ```cs\n? x\n```
130
+ // ^ definition local 20
131
+ // documentation ```cs\n? a\n```
114
132
// ^^^^^^^ reference scip-dotnet nuget . . Main/QuerySyntax#sourceA.
115
133
from b in sourceB
134
+ // ^ definition local 21
135
+ // documentation ```cs\n? b\n```
116
136
// ^^^^^^^ reference scip-dotnet nuget . . Main/QuerySyntax#sourceB.
117
137
where a . Method ( ) == b . Method ( )
118
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#MultipleFrom().a.
119
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#MultipleFrom().b.
138
+ // ^ reference local 20
139
+ // ^ reference local 21
120
140
select new { A = a . Method ( ) , B = b . Method ( ) } ;
121
- // ^ reference local 8
122
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#MultipleFrom().a.
123
- // ^ reference local 9
124
- // ^ reference scip-dotnet nuget . . Main/QuerySyntax#MultipleFrom().b.
141
+ // ^ reference local 14
142
+ // ^ reference local 20
143
+ // ^ reference local 15
144
+ // ^ reference local 21
145
+ }
146
+
147
+ void JoinInto ( List < Student > students1 , List < Student > students2 )
148
+ // ^^^^^^^^ definition scip-dotnet nuget . . Main/QuerySyntax#JoinInto().
149
+ // documentation ```cs\nprivate void QuerySyntax.JoinInto(List<Student> students1, List<Student> students2)\n```
150
+ // ^^^^^^^ reference scip-dotnet nuget . . Main/QuerySyntax#Student#
151
+ // ^^^^^^^^^ definition scip-dotnet nuget . . Main/QuerySyntax#JoinInto().(students1)
152
+ // documentation ```cs\nList<Student> students1\n```
153
+ // ^^^^^^^ reference scip-dotnet nuget . . Main/QuerySyntax#Student#
154
+ // ^^^^^^^^^ definition scip-dotnet nuget . . Main/QuerySyntax#JoinInto().(students2)
155
+ // documentation ```cs\nList<Student> students2\n```
156
+ {
157
+ var innerGroupJoinQuery =
158
+ // ^^^^^^^^^^^^^^^^^^^ definition local 22
159
+ // documentation ```cs\n? innerGroupJoinQuery\n```
160
+ from student1 in students1
161
+ // ^^^^^^^^ definition local 23
162
+ // documentation ```cs\n? student1\n```
163
+ // ^^^^^^^^^ reference scip-dotnet nuget . . Main/QuerySyntax#JoinInto().(students1)
164
+ join student2 in students2 on student1 . ID equals student2 . ID into studentGroup
165
+ // ^^^^^^^^ definition local 24
166
+ // documentation ```cs\n? student2\n```
167
+ // ^^^^^^^^^ reference scip-dotnet nuget . . Main/QuerySyntax#JoinInto().(students2)
168
+ // ^^^^^^^^ reference local 23
169
+ // ^^^^^^^^ reference local 24
170
+ // ^^^^^^^^^^^^ definition local 25
171
+ // documentation ```cs\n? studentGroup\n```
172
+ select new { Student = student1 . First , Students = studentGroup } ;
173
+ // ^^^^^^^ reference local 27
174
+ // ^^^^^^^^ reference local 23
175
+ // ^^^^^^^^ reference local 28
176
+ // ^^^^^^^^^^^^ reference local 25
177
+ }
178
+
179
+ void Continuation ( List < Student > students )
180
+ // ^^^^^^^^^^^^ definition scip-dotnet nuget . . Main/QuerySyntax#Continuation().
181
+ // documentation ```cs\nprivate void QuerySyntax.Continuation(List<Student> students)\n```
182
+ // ^^^^^^^ reference scip-dotnet nuget . . Main/QuerySyntax#Student#
183
+ // ^^^^^^^^ definition scip-dotnet nuget . . Main/QuerySyntax#Continuation().(students)
184
+ // documentation ```cs\nList<Student> students\n```
185
+ {
186
+ var sortedGroups =
187
+ // ^^^^^^^^^^^^ definition local 29
188
+ // documentation ```cs\n? sortedGroups\n```
189
+ from student in students
190
+ // ^^^^^^^ definition local 30
191
+ // documentation ```cs\n? student\n```
192
+ // ^^^^^^^^ reference scip-dotnet nuget . . Main/QuerySyntax#Continuation().(students)
193
+ orderby student . Last , student . First
194
+ // ^^^^^^^ reference local 30
195
+ // ^^^^^^^ reference local 30
196
+ group student by student . Last [ 0 ] into newGroup
197
+ // ^^^^^^^ reference local 30
198
+ // ^^^^^^^ reference local 30
199
+ // ^^^^^^^^ definition local 31
200
+ // documentation ```cs\n? newGroup\n```
201
+ orderby newGroup . Key
202
+ // ^^^^^^^^ reference local 31
203
+ select newGroup ;
204
+ // ^^^^^^^^ reference local 31
205
+ }
206
+
207
+ private class Student
208
+ // ^^^^^^^ definition scip-dotnet nuget . . Main/QuerySyntax#Student#
209
+ // documentation ```cs\nclass Student\n```
210
+ {
211
+ public string First { get ; set ; }
212
+ // ^^^^^ definition scip-dotnet nuget . . Main/QuerySyntax#Student#First.
213
+ // documentation ```cs\npublic string Student.First { get; set; }\n```
214
+ public string Last { get ; set ; }
215
+ // ^^^^ definition scip-dotnet nuget . . Main/QuerySyntax#Student#Last.
216
+ // documentation ```cs\npublic string Student.Last { get; set; }\n```
217
+ public int ID { get ; set ; }
218
+ // ^^ definition scip-dotnet nuget . . Main/QuerySyntax#Student#ID.
219
+ // documentation ```cs\npublic int Student.ID { get; set; }\n```
125
220
}
126
221
}
0 commit comments