File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
rust/ql/lib/codeql/rust/internal Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,12 @@ private module Input1 implements InputSig1<Location> {
69
69
apos .asMethodTypeArgumentPosition ( ) = ppos .asTypeParam ( ) .getPosition ( )
70
70
}
71
71
72
- private predicate id ( Raw:: AstNode x , Raw:: AstNode y ) { x = y }
72
+ /** A raw AST node that might correspond to a type parameter. */
73
+ private class RawTypeParameter = @type_param or @trait;
73
74
74
- private predicate idOfRaw ( Raw:: AstNode x , int y ) = equivalenceRelation( id / 2 ) ( x , y )
75
+ private predicate id ( RawTypeParameter x , RawTypeParameter y ) { x = y }
76
+
77
+ private predicate idOfRaw ( RawTypeParameter x , int y ) = equivalenceRelation( id / 2 ) ( x , y )
75
78
76
79
private int idOf ( AstNode node ) { idOfRaw ( Synth:: convertAstNodeToRaw ( node ) , result ) }
77
80
You can’t perform that action at this time.
0 commit comments