1059 // _cgoCheckPointer returns the untyped nil the type assertion we
1060 // are going to insert will fail. Easier to just skip nil arguments.
1061▶ // TODO: Note that this fails if nil is shadowed.
1062 if id, ok := arg.(*ast.Ident); ok && id.Name == "nil" {
1063 return false
· · ·
1098 return true
1099 case *ast.Ident:
1100▶ // TODO: Handle types defined within function.
1101 for _, d := range p.Decl {
1102 gd, ok := d.(*ast.GenDecl)
· · ·
1397 return false
1398 case *ast.Ident:
1399▶ // TODO: This ignores shadowing.
1400 switch t.Name {
1401 case "unsafe.Pointer", "bool", "byte",
· · ·
2239// gccErrors is called concurrently with different C programs.
2240func (p *Package) gccErrors(stdin []byte, extraArgs ...string) string {
2241▶ // TODO(rsc): require failure
2242 args := p.gccCmd(gccTmp())
2243
· · ·
2738 t.C.Set("__typeof__(unsigned char[%d])", t.Size)
2739 }
2740▶ t.Align = 1 // TODO: should probably base this on field alignment.
2741 typedef[name.Name] = t
2742 case "struct":
+ 3 more matches in this file