@@ -27,7 +27,7 @@ private newtype TServiceReference =
2727 */
2828abstract class ServiceReference extends TServiceReference {
2929 /** Gets a textual representation of this element. */
30- string toString ( ) { result = getName ( ) }
30+ string toString ( ) { result = this . getName ( ) }
3131
3232 /**
3333 * Gets the name of this reference.
@@ -51,21 +51,21 @@ abstract class ServiceReference extends TServiceReference {
5151 /**
5252 * Gets a call that invokes the referenced service.
5353 */
54- DataFlow:: CallNode getACall ( ) { result .getCalleeNode ( ) = getAnAccess ( ) }
54+ DataFlow:: CallNode getACall ( ) { result .getCalleeNode ( ) = this . getAnAccess ( ) }
5555
5656 /**
5757 * Gets a method call that invokes method `methodName` on the referenced service.
5858 */
5959 DataFlow:: MethodCallNode getAMethodCall ( string methodName ) {
60- result .getReceiver ( ) = getAnAccess ( ) and
60+ result .getReceiver ( ) = this . getAnAccess ( ) and
6161 result .getMethodName ( ) = methodName
6262 }
6363
6464 /**
6565 * Gets an access to property `propertyName` on the referenced service.
6666 */
6767 DataFlow:: PropRef getAPropertyAccess ( string propertyName ) {
68- result .getBase ( ) = getAnAccess ( ) and
68+ result .getBase ( ) = this . getAnAccess ( ) and
6969 result .getPropertyName ( ) = propertyName
7070 }
7171
@@ -244,17 +244,17 @@ abstract class RecipeDefinition extends DataFlow::CallNode, CustomServiceDefinit
244244 this = moduleRef ( _) .getAMethodCall ( methodName ) or
245245 this = builtinServiceRef ( "$provide" ) .getAMethodCall ( methodName )
246246 ) and
247- getArgument ( 0 ) .mayHaveStringValue ( name )
247+ this . getArgument ( 0 ) .mayHaveStringValue ( name )
248248 }
249249
250250 override string getName ( ) { result = name }
251251
252- override DataFlow:: SourceNode getAFactoryFunction ( ) { result .flowsTo ( getArgument ( 1 ) ) }
252+ override DataFlow:: SourceNode getAFactoryFunction ( ) { result .flowsTo ( this . getArgument ( 1 ) ) }
253253
254254 override DataFlow:: Node getAnInjectableFunction ( ) {
255255 methodName != "value" and
256256 methodName != "constant" and
257- result = getAFactoryFunction ( )
257+ result = this . getAFactoryFunction ( )
258258 }
259259}
260260
@@ -269,7 +269,7 @@ abstract class RecipeDefinition extends DataFlow::CallNode, CustomServiceDefinit
269269 */
270270abstract private class CustomSpecialServiceDefinition extends CustomServiceDefinition ,
271271 DependencyInjection {
272- override DataFlow:: Node getAnInjectableFunction ( ) { result = getAFactoryFunction ( ) }
272+ override DataFlow:: Node getAnInjectableFunction ( ) { result = this . getAFactoryFunction ( ) }
273273}
274274
275275/**
@@ -498,7 +498,9 @@ class InjectableFunctionServiceRequest extends ServiceRequestNode {
498498 /**
499499 * Gets a name of a requested service.
500500 */
501- string getAServiceName ( ) { exists ( getAnInjectedFunction ( ) .getADependencyDeclaration ( result ) ) }
501+ string getAServiceName ( ) {
502+ exists ( this .getAnInjectedFunction ( ) .getADependencyDeclaration ( result ) )
503+ }
502504
503505 /**
504506 * Gets a service with the specified name, relative to this request.
@@ -576,7 +578,7 @@ class ServiceRecipeDefinition extends RecipeDefinition {
576578 */
577579
578580 exists ( InjectableFunction f |
579- f = getAFactoryFunction ( ) and
581+ f = this . getAFactoryFunction ( ) and
580582 result = f .asFunction ( )
581583 )
582584 }
@@ -589,7 +591,7 @@ class ServiceRecipeDefinition extends RecipeDefinition {
589591class ValueRecipeDefinition extends RecipeDefinition {
590592 ValueRecipeDefinition ( ) { methodName = "value" }
591593
592- override DataFlow:: SourceNode getAService ( ) { result = getAFactoryFunction ( ) }
594+ override DataFlow:: SourceNode getAService ( ) { result = this . getAFactoryFunction ( ) }
593595}
594596
595597/**
@@ -599,7 +601,7 @@ class ValueRecipeDefinition extends RecipeDefinition {
599601class ConstantRecipeDefinition extends RecipeDefinition {
600602 ConstantRecipeDefinition ( ) { methodName = "constant" }
601603
602- override DataFlow:: SourceNode getAService ( ) { result = getAFactoryFunction ( ) }
604+ override DataFlow:: SourceNode getAService ( ) { result = this . getAFactoryFunction ( ) }
603605}
604606
605607/**
@@ -622,7 +624,7 @@ class ProviderRecipeDefinition extends RecipeDefinition {
622624 */
623625
624626 exists ( DataFlow:: ThisNode thiz , InjectableFunction f |
625- f = getAFactoryFunction ( ) and
627+ f = this . getAFactoryFunction ( ) and
626628 thiz .getBinder ( ) = f .asFunction ( ) and
627629 result = thiz .getAPropertySource ( "$get" )
628630 )
@@ -647,7 +649,9 @@ class ConfigMethodDefinition extends ModuleApiCall {
647649 /**
648650 * Gets a provided configuration method.
649651 */
650- InjectableFunction getConfigMethod ( ) { result .( DataFlow:: SourceNode ) .flowsTo ( getArgument ( 0 ) ) }
652+ InjectableFunction getConfigMethod ( ) {
653+ result .( DataFlow:: SourceNode ) .flowsTo ( this .getArgument ( 0 ) )
654+ }
651655}
652656
653657/**
@@ -660,12 +664,12 @@ class RunMethodDefinition extends ModuleApiCall {
660664 /**
661665 * Gets a provided run method.
662666 */
663- InjectableFunction getRunMethod ( ) { result .( DataFlow:: SourceNode ) .flowsTo ( getArgument ( 0 ) ) }
667+ InjectableFunction getRunMethod ( ) { result .( DataFlow:: SourceNode ) .flowsTo ( this . getArgument ( 0 ) ) }
664668}
665669
666670/**
667671 * The `$scope` or `$rootScope` service.
668672 */
669673class ScopeServiceReference extends BuiltinServiceReference {
670- ScopeServiceReference ( ) { getName ( ) = "$scope" or getName ( ) = "$rootScope" }
674+ ScopeServiceReference ( ) { this . getName ( ) = "$scope" or this . getName ( ) = "$rootScope" }
671675}
0 commit comments