@@ -1173,8 +1173,8 @@ private Type inferCallExprBaseType(AstNode n, TypePath path) {
11731173 path = TypePath:: cons ( TRefTypeParameter ( ) , path0 )
11741174 else (
11751175 not (
1176- argType .( StructType ) .asStruct ( ) instanceof StringStruct and
1177- result .( StructType ) .asStruct ( ) instanceof Builtins:: Str
1176+ argType .( StructType ) .getStruct ( ) instanceof StringStruct and
1177+ result .( StructType ) .getStruct ( ) instanceof Builtins:: Str
11781178 ) and
11791179 (
11801180 not path0 .isCons ( TRefTypeParameter ( ) , _) and
@@ -1889,8 +1889,8 @@ final class MethodCall extends Call {
18891889 //
18901890 // See also https://doc.rust-lang.org/reference/expressions/method-call-expr.html#r-expr.method.autoref-deref
18911891 path .isEmpty ( ) and
1892- t0 .( StructType ) .asStruct ( ) instanceof StringStruct and
1893- result .( StructType ) .asStruct ( ) instanceof Builtins:: Str
1892+ t0 .( StructType ) .getStruct ( ) instanceof StringStruct and
1893+ result .( StructType ) .getStruct ( ) instanceof Builtins:: Str
18941894 )
18951895 else result = this .getReceiverTypeAt ( path )
18961896 }
@@ -2519,8 +2519,8 @@ private module Cached {
25192519 cached
25202520 StructField resolveStructFieldExpr ( FieldExpr fe ) {
25212521 exists ( string name , Type ty | ty = getFieldExprLookupType ( fe , name ) |
2522- result = ty .( StructType ) .asStruct ( ) .getStructField ( name ) or
2523- result = ty .( UnionType ) .asUnion ( ) .getStructField ( name )
2522+ result = ty .( StructType ) .getStruct ( ) .getStructField ( name ) or
2523+ result = ty .( UnionType ) .getUnion ( ) .getStructField ( name )
25242524 )
25252525 }
25262526
@@ -2530,7 +2530,7 @@ private module Cached {
25302530 cached
25312531 TupleField resolveTupleFieldExpr ( FieldExpr fe ) {
25322532 exists ( int i |
2533- result = getTupleFieldExprLookupType ( fe , i ) .( StructType ) .asStruct ( ) .getTupleField ( i )
2533+ result = getTupleFieldExprLookupType ( fe , i ) .( StructType ) .getStruct ( ) .getTupleField ( i )
25342534 )
25352535 }
25362536
0 commit comments