Skip to content

Commit 92f5f59

Browse files
Merge pull request microsoft#4875 from jbondc/utilities-typos
Utilities typos + missing reference
2 parents e4f0ebb + 921adc8 commit 92f5f59

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/compiler/utilities.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/// <reference path="binder.ts" />
2+
/// <reference path="sys.ts" />
23

34
/* @internal */
45
namespace ts {
@@ -164,16 +165,16 @@ namespace ts {
164165
return node.pos;
165166
}
166167

167-
// Returns true if this node is missing from the actual source code. 'missing' is different
168-
// from 'undefined/defined'. When a node is undefined (which can happen for optional nodes
169-
// in the tree), it is definitel missing. HOwever, a node may be defined, but still be
168+
// Returns true if this node is missing from the actual source code. A 'missing' node is different
169+
// from 'undefined/defined'. When a node is undefined (which can happen for optional nodes
170+
// in the tree), it is definitely missing. However, a node may be defined, but still be
170171
// missing. This happens whenever the parser knows it needs to parse something, but can't
171-
// get anything in the source code that it expects at that location. For example:
172+
// get anything in the source code that it expects at that location. For example:
172173
//
173174
// let a: ;
174175
//
175176
// Here, the Type in the Type-Annotation is not-optional (as there is a colon in the source
176-
// code). So the parser will attempt to parse out a type, and will create an actual node.
177+
// code). So the parser will attempt to parse out a type, and will create an actual node.
177178
// However, this node will be 'missing' in the sense that no actual source-code/tokens are
178179
// contained within it.
179180
export function nodeIsMissing(node: Node) {

0 commit comments

Comments
 (0)