@@ -72,15 +72,27 @@ public FromClause ParentFromClause
72
72
{
73
73
get { return _parentFromClause ; }
74
74
}
75
-
75
+
76
+ //6.0 TODO: Replace with Typed version below
76
77
public IList < IASTNode > GetExplicitFromElements ( )
77
78
{
78
- return ASTUtil . CollectChildren ( this , ExplicitFromPredicate ) ;
79
+ return ASTUtil . CollectChildren < IASTNode > ( this , ExplicitFromPredicate ) ;
79
80
}
80
-
81
+
82
+ internal IList < FromElement > GetExplicitFromElementsTyped ( )
83
+ {
84
+ return ASTUtil . CollectChildren < FromElement > ( this , ExplicitFromPredicate ) ;
85
+ }
86
+
87
+ //6.0 TODO: Replace with Typed version below
81
88
public IList < IASTNode > GetCollectionFetches ( )
82
89
{
83
- return ASTUtil . CollectChildren ( this , CollectionFetchPredicate ) ;
90
+ return ASTUtil . CollectChildren < IASTNode > ( this , CollectionFetchPredicate ) ;
91
+ }
92
+
93
+ internal IList < FromElement > GetCollectionFetchesTyped ( )
94
+ {
95
+ return ASTUtil . CollectChildren < FromElement > ( this , CollectionFetchPredicate ) ;
84
96
}
85
97
86
98
public FromElement FindCollectionJoin ( String path )
@@ -198,27 +210,39 @@ public FromElement GetFromElement(string aliasOrClassName)
198
210
return fromElement ;
199
211
}
200
212
213
+ //6.0 TODO: Replace with Typed version below
201
214
/// <summary>
202
215
/// Returns the list of from elements in order.
203
216
/// </summary>
204
217
/// <returns>The list of from elements (instances of FromElement).</returns>
205
218
public IList < IASTNode > GetFromElements ( )
206
219
{
207
- return ASTUtil . CollectChildren ( this , FromElementPredicate ) ;
220
+ return ASTUtil . CollectChildren < IASTNode > ( this , FromElementPredicate ) ;
208
221
}
209
222
223
+ internal IList < FromElement > GetFromElementsTyped ( )
224
+ {
225
+ return ASTUtil . CollectChildren < FromElement > ( this , FromElementPredicate ) ;
226
+ }
227
+
228
+ //6.0 TODO: Replace with Typed version below
210
229
/// <summary>
211
230
/// Returns the list of from elements that will be part of the result set.
212
231
/// </summary>
213
232
/// <returns>the list of from elements that will be part of the result set.</returns>
214
233
public IList < IASTNode > GetProjectionList ( )
215
234
{
216
- return ASTUtil . CollectChildren ( this , ProjectionListPredicate ) ;
235
+ return ASTUtil . CollectChildren < IASTNode > ( this , ProjectionListPredicate ) ;
236
+ }
237
+
238
+ internal IList < FromElement > GetProjectionListTyped ( )
239
+ {
240
+ return ASTUtil . CollectChildren < FromElement > ( this , ProjectionListPredicate ) ;
217
241
}
218
242
219
243
public FromElement GetFromElement ( )
220
244
{
221
- return ( FromElement ) GetFromElements ( ) [ 0 ] ;
245
+ return GetFromElementsTyped ( ) [ 0 ] ;
222
246
}
223
247
224
248
public void AddDuplicateAlias ( string alias , FromElement element )
0 commit comments