package astutil

import "golang.org/x/tools/internal/astutil"

Index

Functions

func CloneNode

func CloneNode[T ast.Node](n T) T

CloneNode returns a deep copy of a Node. It omits pointers to ast.{Scope,Object} variables.

Source Files

clone.go

Directories

PathSynopsis
internal/astutil/cursorPackage cursor augments inspector.Inspector with Cursor functionality allowing more flexibility and control during inspection.
Version
v0.29.0
Published
Jan 6, 2025
Platform
windows/amd64
Imports
2 packages
Last checked
1 hour ago

Tools for package owners.