Skip to content

Commit

Permalink
Fix typos (#2621)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrCai0907 committed Jan 19, 2023
1 parent 7348584 commit 849a13c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ export class Compiler extends DiagnosticEmitter {
functionTable[i] = this.ensureVarargsStub(instance);
}
}
let overrrideStubsSeen = new Set<Function>();
let overrideStubsSeen = new Set<Function>();
do {
// override stubs and overrides have cross-dependencies on each other, in that compiling
// either may discover the respective other. do this in a loop until no more are found.
Expand All @@ -608,10 +608,10 @@ export class Compiler extends DiagnosticEmitter {
this.compileFunction(overrideInstances[i]);
}
}
overrrideStubsSeen.add(instance);
overrideStubsSeen.add(instance);
}
} while (overrideStubs.size > overrrideStubsSeen.size || resolver.discoveredOverride);
overrrideStubsSeen.clear();
} while (overrideStubs.size > overrideStubsSeen.size || resolver.discoveredOverride);
overrideStubsSeen.clear();
for (let _values = Set_values(overrideStubs), i = 0, k = _values.length; i < k; ++i) {
this.finalizeOverrideStub(_values[i]);
}
Expand Down Expand Up @@ -2062,7 +2062,7 @@ export class Compiler extends DiagnosticEmitter {
let declaration = <NamespaceDeclaration>statement;
let element = this.program.getElementByDeclaration(declaration);
if (element) {
// any potentiall merged element
// any potential merged element
let previousParent = this.currentParent;
this.currentParent = element;
let memberStatements = declaration.members;
Expand Down Expand Up @@ -4367,7 +4367,7 @@ export class Compiler extends DiagnosticEmitter {
leftExpr = this.compileExpression(left, contextualType.intType);
leftType = this.currentType;

// check operator overloadd
// check operator overload
let classReference = leftType.getClassOrWrapper(this.program);
if (classReference) {
let overload = classReference.lookupOverload(OperatorKind.BitwiseAnd);
Expand Down
2 changes: 1 addition & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4530,7 +4530,7 @@ export const enum Precedence {
Grouping
}

/** Determines the precende of a non-starting token. */
/** Determines the precedence of a non-starting token. */
function determinePrecedence(kind: Token): Precedence {
switch (kind) {
case Token.Comma: return Precedence.Comma;
Expand Down

0 comments on commit 849a13c

Please sign in to comment.