]> Cypherpunks.ru repositories - gostls13.git/blob - src/cmd/cgo/ast_go1.go
ce61d29095585c8f59f36f92c8cc969ca2249f7e
[gostls13.git] / 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
7 package main
8
9 import (
10         "go/token"
11 )
12
13 func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) {
14         error_(token.NoPos, "unexpected type %T in walk", x)
15         panic("unexpected type")
16 }