File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
/// <reference path="binder.ts" />
2
+ /// <reference path="sys.ts" />
2
3
3
4
/* @internal */
4
5
namespace ts {
@@ -164,16 +165,16 @@ namespace ts {
164
165
return node . pos ;
165
166
}
166
167
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
170
171
// 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:
172
173
//
173
174
// let a: ;
174
175
//
175
176
// 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.
177
178
// However, this node will be 'missing' in the sense that no actual source-code/tokens are
178
179
// contained within it.
179
180
export function nodeIsMissing ( node : Node ) {
You can’t perform that action at this time.
0 commit comments