@@ -57,36 +57,40 @@ module Gem {
5757 }
5858
5959 /** Gets the name of the gem */
60- string getName ( ) { result = getSpecProperty ( "name" ) .getConstantValue ( ) .getString ( ) }
60+ string getName ( ) { result = this . getSpecProperty ( "name" ) .getConstantValue ( ) .getString ( ) }
6161
6262 /** Gets a path that is loaded when the gem is required */
6363 private string getARequirePath ( ) {
64- result = getSpecProperty ( [ "require_paths" , "require_path" ] ) .getConstantValue ( ) .getString ( )
64+ result =
65+ this .getSpecProperty ( [ "require_paths" , "require_path" ] ) .getConstantValue ( ) .getString ( )
6566 or
66- not exists ( getSpecProperty ( [ "require_paths" , "require_path" ] ) .getConstantValue ( ) .getString ( ) ) and
67+ not exists (
68+ this .getSpecProperty ( [ "require_paths" , "require_path" ] ) .getConstantValue ( ) .getString ( )
69+ ) and
6770 result = "lib" // the default is "lib"
6871 }
6972
7073 /** Gets a file that could be loaded when the gem is required. */
7174 private File getAPossiblyRequiredFile ( ) {
72- result = File .super .getParentContainer ( ) .getFolder ( getARequirePath ( ) ) .getAChildContainer * ( )
75+ result =
76+ File .super .getParentContainer ( ) .getFolder ( this .getARequirePath ( ) ) .getAChildContainer * ( )
7377 }
7478
7579 /** Gets a class/module that is exported by this gem. */
7680 private ModuleBase getAPublicModule ( ) {
77- result .( Toplevel ) .getLocation ( ) .getFile ( ) = getAPossiblyRequiredFile ( )
81+ result .( Toplevel ) .getLocation ( ) .getFile ( ) = this . getAPossiblyRequiredFile ( )
7882 or
79- result = getAPublicModule ( ) .getAModule ( )
83+ result = this . getAPublicModule ( ) .getAModule ( )
8084 or
81- result = getAPublicModule ( ) .getAClass ( )
85+ result = this . getAPublicModule ( ) .getAClass ( )
8286 or
83- result = getAPublicModule ( ) .getStmt ( _) .( SingletonClass )
87+ result = this . getAPublicModule ( ) .getStmt ( _) .( SingletonClass )
8488 }
8589
8690 /** Gets a parameter from an exported method, which is an input to this gem. */
8791 DataFlow:: ParameterNode getAnInputParameter ( ) {
8892 exists ( MethodBase method |
89- method = getAPublicModule ( ) .getAMethod ( ) and
93+ method = this . getAPublicModule ( ) .getAMethod ( ) and
9094 result .getParameter ( ) = method .getAParameter ( )
9195 |
9296 method .isPublic ( )
0 commit comments