@@ -72,15 +72,27 @@ public FromClause ParentFromClause
7272 {
7373 get { return _parentFromClause ; }
7474 }
75-
75+
76+ //6.0 TODO: Replace with Typed version below
7677 public IList < IASTNode > GetExplicitFromElements ( )
7778 {
78- return ASTUtil . CollectChildren ( this , ExplicitFromPredicate ) ;
79+ return ASTUtil . CollectChildren < IASTNode > ( this , ExplicitFromPredicate ) ;
7980 }
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
8188 public IList < IASTNode > GetCollectionFetches ( )
8289 {
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 ) ;
8496 }
8597
8698 public FromElement FindCollectionJoin ( String path )
@@ -198,27 +210,39 @@ public FromElement GetFromElement(string aliasOrClassName)
198210 return fromElement ;
199211 }
200212
213+ //6.0 TODO: Replace with Typed version below
201214 /// <summary>
202215 /// Returns the list of from elements in order.
203216 /// </summary>
204217 /// <returns>The list of from elements (instances of FromElement).</returns>
205218 public IList < IASTNode > GetFromElements ( )
206219 {
207- return ASTUtil . CollectChildren ( this , FromElementPredicate ) ;
220+ return ASTUtil . CollectChildren < IASTNode > ( this , FromElementPredicate ) ;
208221 }
209222
223+ internal IList < FromElement > GetFromElementsTyped ( )
224+ {
225+ return ASTUtil . CollectChildren < FromElement > ( this , FromElementPredicate ) ;
226+ }
227+
228+ //6.0 TODO: Replace with Typed version below
210229 /// <summary>
211230 /// Returns the list of from elements that will be part of the result set.
212231 /// </summary>
213232 /// <returns>the list of from elements that will be part of the result set.</returns>
214233 public IList < IASTNode > GetProjectionList ( )
215234 {
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 ) ;
217241 }
218242
219243 public FromElement GetFromElement ( )
220244 {
221- return ( FromElement ) GetFromElements ( ) [ 0 ] ;
245+ return GetFromElementsTyped ( ) [ 0 ] ;
222246 }
223247
224248 public void AddDuplicateAlias ( string alias , FromElement element )
0 commit comments