Black Lives Matter. Support the Equal Justice Initiative.

Source file src/go/ast/walk_notypeparams.go

Documentation: go/ast

     1  // Copyright 2021 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build !typeparams
     6  // +build !typeparams
     7  
     8  package ast
     9  
    10  import "fmt"
    11  
    12  func walkFuncTypeParams(v Visitor, n *FuncType) {}
    13  func walkTypeSpecParams(v Visitor, n *TypeSpec) {}
    14  
    15  func walkOtherNodes(v Visitor, n Node) {
    16  	panic(fmt.Sprintf("ast.Walk: unexpected node type %T", n))
    17  }
    18  

View as plain text