@@ -94,7 +94,7 @@ module ResolveExpr<exprSig/1 shouldResolveExpr> {
9494 */
9595 pragma [ nomagic]
9696 private string getPackagePrefixFromPathExpr ( RelevantExpr expr ) {
97- result = expr .getValue ( ) .( StringAsPath ) .getPackagePrefix ( )
97+ result = expr .getValue ( ) .( FilePath ) .getPackagePrefix ( )
9898 }
9999
100100 /**
@@ -141,10 +141,10 @@ module ResolveExpr<exprSig/1 shouldResolveExpr> {
141141 }
142142
143143 pragma [ noopt]
144- private predicate relativePathExpr ( RelevantExpr expr , Container base , StringAsPath path ) {
144+ private predicate relativePathExpr ( RelevantExpr expr , Container base , FilePath path ) {
145145 expr instanceof RelevantExpr and
146146 path = expr .getValue ( ) and
147- path .isRelativePath ( ) and
147+ path .isDotRelativePath ( ) and
148148 exists ( File file |
149149 file = expr .getFile ( ) and
150150 base = file .getParentContainer ( )
@@ -164,15 +164,15 @@ module ResolveExpr<exprSig/1 shouldResolveExpr> {
164164 * Holds if `expr` should be resolved as `path` relative to `base`.
165165 */
166166 pragma [ nomagic]
167- private predicate shouldResolve ( RelevantExpr expr , Container base , StringAsPath path ) {
167+ private predicate shouldResolve ( RelevantExpr expr , Container base , FilePath path ) {
168168 // Relative paths are resolved from their enclosing folder
169169 relativePathExpr ( expr , base , path )
170170 or
171171 resolveViaPathMapping ( expr , base , path )
172172 or
173173 // Resolve from baseUrl of relevant tsconfig.json file
174174 path = expr .getValue ( ) and
175- not path .isRelativePath ( ) and
175+ not path .isDotRelativePath ( ) and
176176 getAPathMappingFromPathExpr ( expr ) .hasBaseUrl ( base )
177177 or
178178 // If the path starts with the name of a package, but did not match any path mapping,
0 commit comments