@@ -130,11 +130,11 @@ private newtype TFunctionType =
130130 * `self5` | `impl T2 for X` | `X`
131131 */
132132class FunctionType extends TFunctionType {
133- private predicate asFunctionType ( Function f , FunctionTypePosition pos , ImplOrTraitItemNode i ) {
133+ private predicate isFunctionType ( Function f , FunctionTypePosition pos , ImplOrTraitItemNode i ) {
134134 this = MkFunctionType ( f , pos , i )
135135 }
136136
137- private predicate asInheritedFunctionType (
137+ private predicate isInheritedFunctionType (
138138 Function f , FunctionTypePosition pos , ImplOrTraitItemNode parent , ImplOrTraitItemNode i
139139 ) {
140140 this = MkInheritedFunctionType ( f , pos , parent , i )
@@ -145,23 +145,23 @@ class FunctionType extends TFunctionType {
145145 * when viewed as a member of the `impl` or trait item `i`.
146146 */
147147 predicate appliesTo ( Function f , FunctionTypePosition pos , ImplOrTraitItemNode i ) {
148- this .asFunctionType ( f , pos , i )
148+ this .isFunctionType ( f , pos , i )
149149 or
150- this .asInheritedFunctionType ( f , pos , _, i )
150+ this .isInheritedFunctionType ( f , pos , _, i )
151151 }
152152
153153 pragma [ nomagic]
154154 private Type getTypeAt0 ( TypePath path ) {
155155 exists ( Function f , FunctionTypePosition pos |
156- this .asFunctionType ( f , pos , _) and
156+ this .isFunctionType ( f , pos , _) and
157157 functionTypeAtPath ( f , pos , path , result )
158158 )
159159 or
160160 exists (
161161 Function f , FunctionTypePosition pos , FunctionType parentType , ImplOrTraitItemNode parent ,
162162 ImplOrTraitItemNode i
163163 |
164- this .asInheritedFunctionType ( f , pos , parent , i ) and
164+ this .isInheritedFunctionType ( f , pos , parent , i ) and
165165 parentType .appliesTo ( f , pos , parent )
166166 |
167167 result = parentType .getTypeAt0 ( path ) and
0 commit comments