JS: simplify this.getStringValue() to getStringValue()

This commit is contained in:
Esben Sparre Andreasen
2019-09-11 10:55:36 +02:00
parent ee106ccff9
commit 0e31cad027
5 changed files with 6 additions and 6 deletions

View File

@@ -189,7 +189,7 @@ private class AmdDependencyPath extends PathExprCandidate {
private class ConstantAmdDependencyPathElement extends PathExprInModule, ConstantString {
ConstantAmdDependencyPathElement() { this = any(AmdDependencyPath amd).getAPart() }
override string getValue() { result = this.getStringValue() }
override string getValue() { result = getStringValue() }
}
/**

View File

@@ -82,7 +82,7 @@ class ImportDeclaration extends Stmt, Import, @importdeclaration {
private class LiteralImportPath extends PathExprInModule, ConstantString {
LiteralImportPath() { exists(ImportDeclaration req | this = req.getChildExpr(-1)) }
override string getValue() { result = this.getStringValue() }
override string getValue() { result = getStringValue() }
}
/**
@@ -596,7 +596,7 @@ abstract class ReExportDeclaration extends ExportDeclaration {
private class LiteralReExportPath extends PathExprInModule, ConstantString {
LiteralReExportPath() { exists(ReExportDeclaration bred | this = bred.getImportedPath()) }
override string getValue() { result = this.getStringValue() }
override string getValue() { result = getStringValue() }
}
/**

View File

@@ -2600,7 +2600,7 @@ private class LiteralDynamicImportPath extends PathExprInModule, ConstantString
exists(DynamicImportExpr di | this.getParentExpr*() = di.getSource())
}
override string getValue() { result = this.getStringValue() }
override string getValue() { result = getStringValue() }
}
/**

View File

@@ -269,7 +269,7 @@ private class RequirePath extends PathExprCandidate {
private class ConstantRequirePathElement extends PathExprInModule, ConstantString {
ConstantRequirePathElement() { this = any(RequirePath rp).getAPart() }
override string getValue() { result = this.getStringValue() }
override string getValue() { result = getStringValue() }
}
/** A `__dirname` path expression. */

View File

@@ -222,7 +222,7 @@ private class LiteralExternalModulePath extends PathExprInModule, ConstantString
exists(ExternalModuleReference emr | this.getParentExpr*() = emr.getExpression())
}
override string getValue() { result = this.getStringValue() }
override string getValue() { result = getStringValue() }
}
/** A TypeScript "export-assign" declaration. */