Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(262)

Delta Between Two Patch Sets: src/pkg/go/types/builtins.go

Issue 7013049: code review 7013049: go/types: moved from exp/types (Closed)
Left Patch Set: Created 11 years, 3 months ago
Right Patch Set: diff -r d7f56af8557e https://code.google.com/p/go Created 11 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/go/types/api.go ('k') | src/pkg/go/types/check.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2012 The Go Authors. All rights reserved. 1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // This file implements typechecking of builtin function calls. 5 // This file implements typechecking of builtin function calls.
6 6
7 package types 7 package types
8 8
9 import ( 9 import (
10 "go/ast" 10 "go/ast"
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 return sizeof(ctxt, typ.Elt) * typ.Len 448 return sizeof(ctxt, typ.Elt) * typ.Len
449 case *Struct: 449 case *Struct:
450 var size int64 450 var size int64
451 for _, f := range typ.Fields { 451 for _, f := range typ.Fields {
452 size += sizeof(ctxt, f.Type) 452 size += sizeof(ctxt, f.Type)
453 } 453 }
454 return size 454 return size
455 } 455 }
456 return ctxt.PtrSize // good enough 456 return ctxt.PtrSize // good enough
457 } 457 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b