mirror of
https://github.com/golang/go
synced 2024-11-18 18:54:42 -07:00
internal/lsp/source: fix typo: identifer → identifier
Change-Id: I37da513eb4a28df5054066b94ff1d915b9dce239 Reviewed-on: https://go-review.googlesource.com/c/tools/+/221022 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
020676185e
commit
26f6a1b680
@ -495,7 +495,7 @@ func Completion(ctx context.Context, snapshot Snapshot, fh FileHandle, pos proto
|
||||
// Detect our surrounding identifier.
|
||||
switch leaf := path[0].(type) {
|
||||
case *ast.Ident:
|
||||
// In the normal case, our leaf AST node is the identifer being completed.
|
||||
// In the normal case, our leaf AST node is the identifier being completed.
|
||||
c.setSurrounding(leaf)
|
||||
case *ast.BadDecl:
|
||||
// You don't get *ast.Idents at the file level, so look for bad
|
||||
|
@ -299,7 +299,7 @@ func pathEnclosingObjNode(f *ast.File, pos token.Pos) []ast.Node {
|
||||
}
|
||||
}
|
||||
case *ast.StarExpr:
|
||||
// Follow star expressions to the inner identifer.
|
||||
// Follow star expressions to the inner identifier.
|
||||
if pos == n.Star {
|
||||
pos = n.X.Pos()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user