File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,11 @@ module Impl {
34
34
exists ( this .getField ( pragma [ only_bind_into ] ( pos ) ) )
35
35
}
36
36
37
+ /**
38
+ * Gets the struct matched by this pattern.
39
+ */
40
+ Struct getStruct ( ) { result = PathResolution:: resolvePath ( this .getPath ( ) ) }
41
+
37
42
/** Gets the tuple field that matches the `pos`th pattern of this pattern. */
38
43
pragma [ nomagic]
39
44
TupleField getTupleField ( int pos ) {
Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ private class PoemHandlerParam extends RemoteSource::Range {
16
16
exists ( TupleStructPat param , Type t |
17
17
this .asPat ( ) .getPat ( ) = param .getAField ( ) and
18
18
t = inferType ( param ) and
19
- t .( StructType ) .asItemNode ( ) .( Addressable ) .getCanonicalPath ( ) =
20
- [ "poem::web::query::Query" , "poem::web::path::Path" ]
19
+ param .getStruct ( ) .getCanonicalPath ( ) = [ "poem::web::query::Query" , "poem::web::path::Path" ]
21
20
)
22
21
}
23
22
}
You can’t perform that action at this time.
0 commit comments