@@ -552,7 +552,7 @@ type Checker struct {
552
552
noImplicitThis bool
553
553
useUnknownInCatchVariables bool
554
554
exactOptionalPropertyTypes bool
555
- canCollectSymbolAliasAccessabilityData bool
555
+ canCollectSymbolAliasAccessibilityData bool
556
556
arrayVariances []VarianceFlags
557
557
globals ast.SymbolTable
558
558
globalSymbols []*ast.Symbol
@@ -828,7 +828,7 @@ func NewChecker(program Program) *Checker {
828
828
c.noImplicitThis = c.getStrictOptionValue(c.compilerOptions.NoImplicitThis)
829
829
c.useUnknownInCatchVariables = c.getStrictOptionValue(c.compilerOptions.UseUnknownInCatchVariables)
830
830
c.exactOptionalPropertyTypes = c.compilerOptions.ExactOptionalPropertyTypes == core.TSTrue
831
- c.canCollectSymbolAliasAccessabilityData = c.compilerOptions.VerbatimModuleSyntax.IsFalseOrUnknown()
831
+ c.canCollectSymbolAliasAccessibilityData = c.compilerOptions.VerbatimModuleSyntax.IsFalseOrUnknown()
832
832
c.arrayVariances = []VarianceFlags{VarianceFlagsCovariant}
833
833
c.globals = make(ast.SymbolTable, countGlobalSymbols(c.files))
834
834
c.evaluate = createEvaluator(c.evaluateEntity)
@@ -9319,7 +9319,7 @@ func (c *Checker) invocationErrorDetails(errorTarget *ast.Node, apparentType *Ty
9319
9319
diagnostic = NewDiagnosticChainForNode(diagnostic, target, core.IfElse(isCall, diagnostics.Not_all_constituents_of_type_0_are_callable, diagnostics.Not_all_constituents_of_type_0_are_constructable), c.TypeToString(apparentType))
9320
9320
}
9321
9321
if hasSignatures {
9322
- // Bail early if we already found a siganture , no chance of "No constituent of type is callable"
9322
+ // Bail early if we already found a signature , no chance of "No constituent of type is callable"
9323
9323
break
9324
9324
}
9325
9325
}
@@ -14064,7 +14064,7 @@ func (c *Checker) resolveExternalModule(location *ast.Node, moduleReference stri
14064
14064
if ambientModule != nil {
14065
14065
return ambientModule
14066
14066
}
14067
- // !!! The following only implements simple module resoltion
14067
+ // !!! The following only implements simple module resolution
14068
14068
sourceFile := c.program.GetResolvedModule(ast.GetSourceFileOfNode(location), moduleReference)
14069
14069
if sourceFile != nil {
14070
14070
if sourceFile.Symbol != nil {
@@ -22315,7 +22315,7 @@ func (c *Checker) getConditionalType(root *ConditionalRoot, mapper *TypeMapper,
22315
22315
// types rules (i.e. proper contravariance) for inferences.
22316
22316
c.inferTypes(context.inferences, checkType, extendsType, InferencePriorityNoConstraints|InferencePriorityAlwaysStrict, false)
22317
22317
}
22318
- // It's possible for 'infer T' type paramteters to be given uninstantiated constraints when the
22318
+ // It's possible for 'infer T' type parameters to be given uninstantiated constraints when the
22319
22319
// those type parameters are used in type references (see getInferredTypeParameterConstraint). For
22320
22320
// that reason we need context.mapper to be first in the combined mapper. See #42636 for examples.
22321
22321
if mapper != nil {
@@ -24857,7 +24857,7 @@ func (c *Checker) getIndexedAccessTypeOrUndefined(objectType *Type, indexType *T
24857
24857
if propType != nil {
24858
24858
propTypes = append(propTypes, propType)
24859
24859
} else if accessNode == nil {
24860
- // If there's no error node, we can immeditely stop, since error reporting is off
24860
+ // If there's no error node, we can immediately stop, since error reporting is off
24861
24861
return nil
24862
24862
} else {
24863
24863
// Otherwise we set a flag and return at the end of the loop so we still mark all errors
@@ -25138,7 +25138,7 @@ func (c *Checker) isSelfTypeAccess(name *ast.Node, parent *ast.Symbol) bool {
25138
25138
25139
25139
func (c *Checker) isAssignmentToReadonlyEntity(expr *ast.Node, symbol *ast.Symbol, assignmentKind AssignmentKind) bool {
25140
25140
if assignmentKind == AssignmentKindNone {
25141
- // no assigment means it doesn't matter whether the entity is readonly
25141
+ // no assignment means it doesn't matter whether the entity is readonly
25142
25142
return false
25143
25143
}
25144
25144
if c.isReadonlySymbol(symbol) {
@@ -25925,7 +25925,7 @@ func (c *Checker) transformTypeOfMembers(t *Type, f func(propertyType *Type) *Ty
25925
25925
}
25926
25926
25927
25927
func (c *Checker) markLinkedReferences(location *ast.Node, hint ReferenceHint, propSymbol *ast.Symbol, parentType *Type) {
25928
- if !c.canCollectSymbolAliasAccessabilityData {
25928
+ if !c.canCollectSymbolAliasAccessibilityData {
25929
25929
return
25930
25930
}
25931
25931
if location.Flags&ast.NodeFlagsAmbient != 0 && !ast.IsPropertySignatureDeclaration(location) && !ast.IsPropertyDeclaration(location) {
@@ -26133,7 +26133,7 @@ func (c *Checker) markPropertyAliasReferenced(location *ast.Node /*PropertyAcces
26133
26133
}
26134
26134
}
26135
26135
26136
- func (c *Checker) markExportAssignmentAliasReferenced(location *ast.Node /*ExportAssigment */) {
26136
+ func (c *Checker) markExportAssignmentAliasReferenced(location *ast.Node /*ExportAssignment */) {
26137
26137
id := location.Expression()
26138
26138
if ast.IsIdentifier(id) {
26139
26139
sym := c.getExportSymbolOfValueSymbolIfExported(c.resolveEntityName(id, ast.SymbolFlagsAll, true /*ignoreErrors*/, true /*dontResolveAlias*/, location))
@@ -26183,7 +26183,7 @@ func (c *Checker) markDecoratorAliasReferenced(node *ast.Node /*HasDecorators*/)
26183
26183
}
26184
26184
26185
26185
func (c *Checker) markAliasReferenced(symbol *ast.Symbol, location *ast.Node) {
26186
- if !c.canCollectSymbolAliasAccessabilityData {
26186
+ if !c.canCollectSymbolAliasAccessibilityData {
26187
26187
return
26188
26188
}
26189
26189
if ast.IsNonLocalAlias(symbol, ast.SymbolFlagsValue /*excludes*/) && !isInTypeQuery(location) {
@@ -26247,7 +26247,7 @@ func (c *Checker) markEntityNameOrEntityExpressionAsReference(typeName *ast.Node
26247
26247
rootSymbol := c.resolveName(rootName, rootName.Text(), meaning, nil /*nameNotFoundMessage*/, true /*isUse*/, false /*excludeGlobals*/)
26248
26248
26249
26249
if rootSymbol != nil && rootSymbol.Flags&ast.SymbolFlagsAlias != 0 {
26250
- if c.canCollectSymbolAliasAccessabilityData &&
26250
+ if c.canCollectSymbolAliasAccessibilityData &&
26251
26251
c.symbolIsValue(rootSymbol) &&
26252
26252
!isConstEnumOrConstEnumOnlyModule(c.resolveAlias(rootSymbol)) &&
26253
26253
c.getTypeOnlyAliasDeclaration(rootSymbol) == nil {
0 commit comments