@@ -441,65 +441,6 @@ class IsExpr extends Expr, PatternMatch, @is_expr {
441441 override string toString ( ) { result = "... is ..." }
442442}
443443
444- /** An `is` type expression, for example, `x is string` or `x is string s`. */
445- deprecated class IsTypeExpr extends IsExpr {
446- TypeAccess typeAccess ;
447-
448- IsTypeExpr ( ) { typeAccess = this .getChild ( 1 ) }
449-
450- /**
451- * Gets the type being accessed in this `is` expression, for example `string`
452- * in `x is string`.
453- */
454- Type getCheckedType ( ) { result = typeAccess .getTarget ( ) }
455-
456- /**
457- * Gets the type access in this `is` expression, for example `string` in
458- * `x is string`.
459- */
460- TypeAccess getTypeAccess ( ) { result = typeAccess }
461- }
462-
463- /** An `is` pattern expression, for example `x is string s`. */
464- deprecated class IsPatternExpr extends IsExpr {
465- LocalVariableDeclExpr typeDecl ;
466-
467- IsPatternExpr ( ) { typeDecl = this .getChild ( 2 ) }
468-
469- /**
470- * Gets the local variable declaration in this `is` pattern expression.
471- * For example `string s` in `x is string s`.
472- */
473- LocalVariableDeclExpr getVariableDeclExpr ( ) { result = typeDecl }
474-
475- /**
476- * Gets the type being accessed in this `is` expression, for example `string`
477- * in `x is string`.
478- */
479- Type getCheckedType ( ) { result = getTypeAccess ( ) .getTarget ( ) }
480-
481- /**
482- * Gets the type access in this `is` expression, for example `string` in
483- * `x is string`.
484- */
485- TypeAccess getTypeAccess ( ) { result = this .getChild ( 1 ) }
486- }
487-
488- /**
489- * An `is` constant expression, for example `x is 5`.
490- */
491- deprecated class IsConstantExpr extends IsExpr {
492- ConstantPatternExpr constant ;
493-
494- IsConstantExpr ( ) { constant = this .getPattern ( ) }
495-
496- /** Gets the constant expression, for example `5` in `x is 5`. */
497- Expr getConstant ( ) { result = constant }
498-
499- /** Gets the value of the constant, for example 5 in `x is 5`. */
500- string getConstantValue ( ) { result = constant .getValue ( ) }
501- }
502-
503444/** A `switch` expression or statement. */
504445class Switch extends ControlFlowElement , @switch {
505446 /** Gets the `i`th case of this `switch`. */
0 commit comments