File tree Expand file tree Collapse file tree 1 file changed +2
-22
lines changed
csharp/ql/src/semmle/code/csharp Expand file tree Collapse file tree 1 file changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -1160,26 +1160,6 @@ class UsingStmt extends Stmt, @using_stmt {
1160
1160
* ```
1161
1161
*/
1162
1162
Expr getAnExpr ( ) { none ( ) }
1163
-
1164
- /**
1165
- * DEPRECATED: Use UsingBlockStmt.getExpr() instead.
1166
- * Gets the expression directly used by this `using` statement, if any. For
1167
- * example, `f` on line 2 in
1168
- *
1169
- * ```
1170
- * var f = File.Open("settings.xml");
1171
- * using (f) {
1172
- * ...
1173
- * }
1174
- * ```
1175
- */
1176
- deprecated Expr getExpr ( ) { none ( ) }
1177
-
1178
- /**
1179
- * DEPRECATED: Use UsingBlockStmt.getBody() instead.
1180
- * Gets the body of this `using` statement.
1181
- */
1182
- deprecated Stmt getBody ( ) { none ( ) }
1183
1163
}
1184
1164
1185
1165
/**
@@ -1212,7 +1192,7 @@ class UsingBlockStmt extends UsingStmt, @using_block_stmt {
1212
1192
* }
1213
1193
* ```
1214
1194
*/
1215
- override Expr getExpr ( ) { result = this .getChild ( 0 ) }
1195
+ Expr getExpr ( ) { result = this .getChild ( 0 ) }
1216
1196
1217
1197
override Expr getAnExpr ( ) {
1218
1198
result = this .getAVariableDeclExpr ( ) .getInitializer ( )
@@ -1221,7 +1201,7 @@ class UsingBlockStmt extends UsingStmt, @using_block_stmt {
1221
1201
}
1222
1202
1223
1203
/** Gets the body of this `using` statement. */
1224
- override Stmt getBody ( ) { result .getParent ( ) = this }
1204
+ Stmt getBody ( ) { result .getParent ( ) = this }
1225
1205
1226
1206
override string toString ( ) { result = "using (...) {...}" }
1227
1207
}
You can’t perform that action at this time.
0 commit comments