Skip to content

Commit 0bf65e4

Browse files
author
Paul van Brenk
committed
Fix annoying spellin errors.
1 parent 5330db6 commit 0bf65e4

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
@@ -824,7 +824,7 @@ module ts {
824824
// to reuse are already at the appropriate position in the new text. That way when we
825825
// reuse them, we don't have to figure out if they need to be adjusted. Second, it makes
826826
// it very easy to determine if we can reuse a node. If the node's position is at where
827-
// we are in the text, then we can reuse it. Otherwise we can't. If hte node's position
827+
// we are in the text, then we can reuse it. Otherwise we can't. If the node's position
828828
// is ahead of us, then we'll need to rescan tokens. If the node's position is behind
829829
// us, then we'll need to skip it or crumble it as appropriate
830830
//
@@ -1029,7 +1029,7 @@ module ts {
10291029
// that some tokens that would be considered identifiers may be considered keywords.
10301030
//
10311031
// When adding more parser context flags, consider which is the more common case that the
1032-
// flag will be in. This should be hte 'false' state for that flag. The reason for this is
1032+
// flag will be in. This should be the 'false' state for that flag. The reason for this is
10331033
// that we don't store data in our nodes unless the value is in the *non-default* state. So,
10341034
// for example, more often than code 'allows-in' (or doesn't 'disallow-in'). We opt for
10351035
// 'disallow-in' set to 'false'. Otherwise, if we had 'allowsIn' set to 'true', then almost
@@ -1040,7 +1040,7 @@ module ts {
10401040
//
10411041
// An important thing about these context concepts. By default they are effectively inherited
10421042
// while parsing through every grammar production. i.e. if you don't change them, then when
1043-
// you parse a sub-production, it will have the same context values as hte parent production.
1043+
// you parse a sub-production, it will have the same context values as the parent production.
10441044
// This is great most of the time. After all, consider all the 'expression' grammar productions
10451045
// and how nearly all of them pass along the 'in' and 'yield' context values:
10461046
//
@@ -1793,7 +1793,7 @@ module ts {
17931793
// some node, then we cannot get a node from the old source tree. This is because we
17941794
// want to mark the next node we encounter as being unusable.
17951795
//
1796-
// Note: This may be too conservative. Perhaps we could reuse hte node and set the bit
1796+
// Note: This may be too conservative. Perhaps we could reuse the node and set the bit
17971797
// on it (or its leftmost child) as having the error. For now though, being conservative
17981798
// is nice and likely won't ever affect perf.
17991799
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)