github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/fix/typecheck.go (about)

     1  // Copyright 2011 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  package main
     6  
     7  type TypeConfig struct {
     8  	Type map[string]*Type
     9  	Var  map[string]string
    10  	Func map[string]string
    11  
    12  	// 名前から型への外部マップ。
    13  	// これはGoのソース自体には存在しない追加の型を提供します。
    14  	// 現時点では、cgoによって生成された追加の型のみがあります。
    15  	External map[string]string
    16  }
    17  
    18  // Typeは型のフィールドとメソッドを表します。
    19  // もしフィールドやメソッドがここに見つからない場合は、次にEmbedリストで探します。
    20  type Type struct {
    21  	Field  map[string]string
    22  	Method map[string]string
    23  	Embed  []string
    24  	Def    string
    25  }