Skip to content

Commit 65cbd91

Browse files
committed
Merge pull request #2597 from Microsoft/spelling
Spelling
2 parents 45412f6 + 548e33c commit 65cbd91

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/compiler/parser.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ module ts {
828828
// to reuse are already at the appropriate position in the new text. That way when we
829829
// reuse them, we don't have to figure out if they need to be adjusted. Second, it makes
830830
// it very easy to determine if we can reuse a node. If the node's position is at where
831-
// we are in the text, then we can reuse it. Otherwise we can't. If hte node's position
831+
// we are in the text, then we can reuse it. Otherwise we can't. If the node's position
832832
// is ahead of us, then we'll need to rescan tokens. If the node's position is behind
833833
// us, then we'll need to skip it or crumble it as appropriate
834834
//
@@ -1033,7 +1033,7 @@ module ts {
10331033
// that some tokens that would be considered identifiers may be considered keywords.
10341034
//
10351035
// When adding more parser context flags, consider which is the more common case that the
1036-
// flag will be in. This should be hte 'false' state for that flag. The reason for this is
1036+
// flag will be in. This should be the 'false' state for that flag. The reason for this is
10371037
// that we don't store data in our nodes unless the value is in the *non-default* state. So,
10381038
// for example, more often than code 'allows-in' (or doesn't 'disallow-in'). We opt for
10391039
// 'disallow-in' set to 'false'. Otherwise, if we had 'allowsIn' set to 'true', then almost
@@ -1044,7 +1044,7 @@ module ts {
10441044
//
10451045
// An important thing about these context concepts. By default they are effectively inherited
10461046
// while parsing through every grammar production. i.e. if you don't change them, then when
1047-
// you parse a sub-production, it will have the same context values as hte parent production.
1047+
// you parse a sub-production, it will have the same context values as the parent production.
10481048
// This is great most of the time. After all, consider all the 'expression' grammar productions
10491049
// and how nearly all of them pass along the 'in' and 'yield' context values:
10501050
//
@@ -1836,7 +1836,7 @@ module ts {
18361836
// some node, then we cannot get a node from the old source tree. This is because we
18371837
// want to mark the next node we encounter as being unusable.
18381838
//
1839-
// Note: This may be too conservative. Perhaps we could reuse hte node and set the bit
1839+
// Note: This may be too conservative. Perhaps we could reuse the node and set the bit
18401840
// on it (or its leftmost child) as having the error. For now though, being conservative
18411841
// is nice and likely won't ever affect perf.
18421842
if (parseErrorBeforeNextFinishedNode) {

src/services/navigateTo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module ts.NavigateTo {
2222
continue;
2323
}
2424

25-
// It was a match! If the pattern has dots in it, then also see if hte
25+
// It was a match! If the pattern has dots in it, then also see if the
2626
// declaration container matches as well.
2727
if (patternMatcher.patternContainsDots) {
2828
let containers = getContainers(declaration);

src/services/patternMatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ module ts {
471471

472472
// Helper function to compare two matches to determine which is better. Matches are first
473473
// ordered by kind (so all prefix matches always beat all substring matches). Then, if the
474-
// match is a camel case match, the relative weights of hte match are used to determine
474+
// match is a camel case match, the relative weights of the match are used to determine
475475
// which is better (with a greater weight being better). Then if the match is of the same
476476
// type, then a case sensitive match is considered better than an insensitive one.
477477
function patternMatchCompareTo(match1: PatternMatch, match2: PatternMatch): number {

0 commit comments

Comments
 (0)