Source file src/cmd/cgo/ast_go1.go

     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 compiler_bootstrap
     6  // +build compiler_bootstrap
     7  
     8  package main
     9  
    10  import (
    11  	"go/token"
    12  )
    13  
    14  func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) {
    15  	error_(token.NoPos, "unexpected type %T in walk", x)
    16  	panic("unexpected type")
    17  }
    18  

View as plain text