github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/cgo/ast.go (about) 1 // Copyright 2009 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 // 入力ASTを解析し、Prog構造体を準備します。 6 7 package main 8 9 // ParseGoは、指定されたファイルから読み込まれたGoソースコードから取得した情報でfを埋めます。 10 // これには、import "C"コメントに付属しているCの前文、C.xxxへの参照のリスト、 11 // エクスポートされた関数のリスト、および実際のASTが含まれ、書き直されて出力されます。 12 func (f *File) ParseGo(abspath string, src []byte)