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

Delta Between Two Patch Sets: src/go/doc/exports.go

Issue 152570049: [dev.power64] code review 152570049: all: merge default into dev.power64 (Closed)
Left Patch Set: diff -r 36f7fc9495481ed67a159eea0eb2fac35b7c46a5 https://code.google.com/p/go Created 10 years, 4 months ago
Right Patch Set: diff -r 36f7fc9495481ed67a159eea0eb2fac35b7c46a5 https://code.google.com/p/go Created 10 years, 4 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/go/build/testdata/multi/file_appengine.go ('k') | src/go/doc/testdata/blank.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
(Both sides are equal)
1 // Copyright 2011 The Go Authors. All rights reserved. 1 // Copyright 2011 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 export filtering of an AST. 5 // This file implements export filtering of an AST.
6 6
7 package doc 7 package doc
8 8
9 import ( 9 import (
10 "go/ast" 10 "go/ast"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 func (r *reader) fileExports(src *ast.File) { 196 func (r *reader) fileExports(src *ast.File) {
197 j := 0 197 j := 0
198 for _, d := range src.Decls { 198 for _, d := range src.Decls {
199 if r.filterDecl(d) { 199 if r.filterDecl(d) {
200 src.Decls[j] = d 200 src.Decls[j] = d
201 j++ 201 j++
202 } 202 }
203 } 203 }
204 src.Decls = src.Decls[0:j] 204 src.Decls = src.Decls[0:j]
205 } 205 }
LEFTRIGHT

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