@@ -84,7 +84,7 @@ module Ssa {
8484 * Gets an SSA definition that has this variable as its underlying
8585 * source variable.
8686 */
87- Definition getAnSsaDefinition ( ) { result .getSourceVariable ( ) = this }
87+ SsaDefinition getAnSsaDefinition ( ) { result .getSourceVariable ( ) = this }
8888 }
8989
9090 /** Provides different types of `SourceVariable`s. */
@@ -203,11 +203,13 @@ module Ssa {
203203 predicate isLiveOutRefParameterDefinition = SsaImpl:: isLiveOutRefParameterDefinition / 2 ;
204204
205205 /**
206+ * DEPRECATED: Use `SsaDefinition` instead.
207+ *
206208 * A static single assignment (SSA) definition. Either an explicit variable
207209 * definition (`ExplicitDefinition`), an implicit variable definition
208210 * (`ImplicitDefinition`), or a phi node (`PhiNode`).
209211 */
210- class Definition extends SsaImpl:: Definition {
212+ deprecated class Definition extends SsaImpl:: Definition {
211213 /** Gets the control flow node of this SSA definition. */
212214 final ControlFlowNode getControlFlowNode ( ) {
213215 exists ( BasicBlock bb , int i | this .definesAt ( _, bb , i ) | result = bb .getNode ( 0 .maximum ( i ) ) )
@@ -639,7 +641,7 @@ module Ssa {
639641 * via an SSA definition for the qualifier.
640642 */
641643 class ImplicitQualifierDefinition extends SsaImplicitWrite {
642- private Definition q ;
644+ private SsaDefinition q ;
643645
644646 ImplicitQualifierDefinition ( ) {
645647 exists ( BasicBlock bb , int i , SourceVariables:: QualifiedFieldOrPropSourceVariable v |
@@ -651,7 +653,7 @@ module Ssa {
651653 }
652654
653655 /** Gets the SSA definition for the qualifier. */
654- final Definition getQualifierDefinition ( ) { result = q }
656+ final SsaDefinition getQualifierDefinition ( ) { result = q }
655657
656658 override string toString ( ) { result = "SSA qualifier def(" + this .getSourceVariable ( ) + ")" }
657659 }
0 commit comments