Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typo #2621

Merged
merged 2 commits into from
Jan 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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