File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -98,16 +98,16 @@ class ParameterPosition = Position;
98
98
/** An argument position represented by an integer. */
99
99
class ArgumentPosition = Position ;
100
100
101
- class Position extends TPosition {
101
+ abstract class Position extends TPosition {
102
102
abstract string toString ( ) ;
103
103
}
104
104
105
- class DirectPosition extends TDirectPosition {
105
+ class DirectPosition extends Position , TDirectPosition {
106
106
int index ;
107
107
108
108
DirectPosition ( ) { this = TDirectPosition ( index ) }
109
109
110
- string toString ( ) {
110
+ override string toString ( ) {
111
111
index = - 1 and
112
112
result = "this"
113
113
or
@@ -118,12 +118,12 @@ class DirectPosition extends TDirectPosition {
118
118
int getIndex ( ) { result = index }
119
119
}
120
120
121
- class IndirectionPosition extends TIndirectionPosition {
121
+ class IndirectionPosition extends Position , TIndirectionPosition {
122
122
int index ;
123
123
124
124
IndirectionPosition ( ) { this = TIndirectionPosition ( index ) }
125
125
126
- string toString ( ) {
126
+ override string toString ( ) {
127
127
index = - 1 and
128
128
result = "this"
129
129
or
You can’t perform that action at this time.
0 commit comments