Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/ast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -1581,7 +1581,7 @@ func (node *NodeDefault) SubtreeFacts() SubtreeFacts {
}

func (node *NodeDefault) subtreeFactsWorker(self nodeData) SubtreeFacts {
// To avoid excessive conditonal checks, the default implementation of subtreeFactsWorker directly invokes
// To avoid excessive conditional checks, the default implementation of subtreeFactsWorker directly invokes
// computeSubtreeFacts. More complex nodes should implement CompositeNodeBase, which overrides this
// method to cache the result. `self` is passed along to ensure we lookup `computeSubtreeFacts` on the
// correct type, as `CompositeNodeBase` does not, itself, inherit from `Node`.
Expand Down
2 changes: 1 addition & 1 deletion internal/checker/flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ func (c *Checker) getDiscriminantPropertyAccess(f *FlowState, expr *ast.Node, co
func (c *Checker) getCandidateDiscriminantPropertyAccess(f *FlowState, expr *ast.Node) *ast.Node {
switch {
case ast.IsBindingPattern(f.reference) || ast.IsFunctionExpressionOrArrowFunction(f.reference) || ast.IsObjectLiteralMethod(f.reference):
// When the reference is a binding pattern or function or arrow expression, we are narrowing a pesudo-reference in
// When the reference is a binding pattern or function or arrow expression, we are narrowing a pseudo-reference in
// getNarrowedTypeOfSymbol. An identifier for a destructuring variable declared in the same binding pattern or
// parameter declared in the same parameter list is a candidate.
if ast.IsIdentifier(expr) {
Expand Down
Loading