@@ -84,6 +84,9 @@ predicate isExternalLibrary(string name) {
8484 name = "zlib"
8585}
8686
87+ /**
88+ * Holds if the global variable `name` is defined externally.
89+ */
8790predicate isExternalGlobal ( string name ) {
8891 exists ( ExternalGlobalDecl decl |
8992 decl .getName ( ) = name
@@ -108,7 +111,7 @@ predicate isExternalGlobal(string name) {
108111 * and callbacks, so some of these might refer to internal objects.
109112 *
110113 * Additionally, we don't recognize when a project imports another file in the
111- * same project using it module name (e.g. import "vscode" from inside the vscode project).
114+ * same project using its module name (for example import "vscode" from inside the vscode project).
112115 */
113116SourceNode externalNode ( ) {
114117 exists ( string moduleName |
@@ -148,7 +151,7 @@ SourceNode resolvableCallback() {
148151}
149152
150153/**
151- * Acall site that can be resolved to a function in the same project.
154+ * A call site that can be resolved to a function in the same project.
152155 */
153156class ResolvedCall extends RelevantInvoke {
154157 ResolvedCall ( ) {
@@ -174,7 +177,7 @@ class ExternalCall extends RelevantInvoke {
174177 // Resolved to externs file
175178 exists ( this .( InvokeNode ) .getACallee ( 1 ) )
176179 or
177- // Modelled as taint step but isn't from an NPM module. E.g. `substring` or `push`.
180+ // Modelled as taint step but isn't from an NPM module, for example, `substring` or `push`.
178181 exists ( TaintTracking:: AdditionalTaintStep step |
179182 step .step ( _, this )
180183 or
@@ -185,7 +188,7 @@ class ExternalCall extends RelevantInvoke {
185188}
186189
187190/**
188- * Gets a call site that could not be resolved.
191+ * A call site that could not be resolved.
189192 */
190193class UnresolvedCall extends RelevantInvoke {
191194 UnresolvedCall ( ) {
0 commit comments