Skip to content

Commit 3cf133c

Browse files
Apply code formatting - remove trailing whitespace
Co-authored-by: RyanCavanaugh <[email protected]>
1 parent 6f3c740 commit 3cf133c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

internal/checker/emitresolver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ func (r *emitResolver) TrackExistingEntityName(emitContext *printer.EmitContext,
10861086

10871087
r.checkerMu.Lock()
10881088
defer r.checkerMu.Unlock()
1089-
1089+
10901090
requestNodeBuilder := NewNodeBuilder(r.checker, emitContext) // TODO: cache per-context
10911091
return requestNodeBuilder.TrackExistingEntityName(original, enclosingDeclaration, flags, internalFlags, tracker)
10921092
}

internal/checker/nodebuilderimpl.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,21 +1350,21 @@ func (b *nodeBuilderImpl) trackExistingEntityName(node *ast.Node) *ast.Node {
13501350
if node == nil || !ast.IsIdentifier(node) {
13511351
return node
13521352
}
1353-
1353+
13541354
// Get the symbol for this identifier
13551355
symbol := b.ch.getSymbolOfNode(node)
13561356
if symbol == nil {
13571357
return node
13581358
}
1359-
1359+
13601360
// If it's a type parameter, use typeParameterToName to get a potentially renamed version
13611361
if symbol.Flags&ast.SymbolFlagsTypeParameter != 0 {
13621362
typeParam := b.ch.getDeclaredTypeOfSymbol(symbol)
13631363
if typeParam != nil {
13641364
return b.typeParameterToName(typeParam).AsNode()
13651365
}
13661366
}
1367-
1367+
13681368
// For non-type-parameter identifiers, return a clone
13691369
return node.Clone(b.f)
13701370
}

internal/transformers/declarations/transform.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ func (tx *DeclarationTransformer) transformTypeParameterDeclaration(input *ast.T
643643
declarationEmitInternalNodeBuilderFlags,
644644
tx.tracker,
645645
)
646-
646+
647647
if isPrivateMethodTypeParameter(tx.host, input) && (input.DefaultType != nil || input.Constraint != nil) {
648648
return tx.Factory().UpdateTypeParameterDeclaration(
649649
input,
@@ -653,12 +653,12 @@ func (tx *DeclarationTransformer) transformTypeParameterDeclaration(input *ast.T
653653
nil,
654654
)
655655
}
656-
656+
657657
// Visit children to transform constraint and default type
658658
modifiers := tx.Visitor().VisitModifiers(input.Modifiers())
659659
constraint := tx.Visitor().VisitNode(input.Constraint)
660660
defaultType := tx.Visitor().VisitNode(input.DefaultType)
661-
661+
662662
// Update the type parameter declaration with the potentially renamed name
663663
return tx.Factory().UpdateTypeParameterDeclaration(
664664
input,

0 commit comments

Comments
 (0)