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

Delta Between Two Patch Sets: src/pkg/encoding/xml/read.go

Issue 6938068: code review 6938068: encoding/xml: Marshal ",any" fields
Left Patch Set: Created 11 years, 3 months ago
Right Patch Set: diff -r a70be086fe02 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/encoding/xml/marshal_test.go ('k') | src/pkg/encoding/xml/typeinfo.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 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 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 package xml 5 package xml
6 6
7 import ( 7 import (
8 "bytes" 8 "bytes"
9 "errors" 9 "errors"
10 "reflect" 10 "reflect"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 case fCharData: 272 case fCharData:
273 if !saveData.IsValid() { 273 if !saveData.IsValid() {
274 saveData = finfo.value(sv) 274 saveData = finfo.value(sv)
275 } 275 }
276 276
277 case fComment: 277 case fComment:
278 if !saveComment.IsValid() { 278 if !saveComment.IsValid() {
279 saveComment = finfo.value(sv) 279 saveComment = finfo.value(sv)
280 } 280 }
281 281
282 » » » case fAny: 282 » » » case fAny, fAny | fElement:
283 if !saveAny.IsValid() { 283 if !saveAny.IsValid() {
284 saveAny = finfo.value(sv) 284 saveAny = finfo.value(sv)
285 } 285 }
286 286
287 case fInnerXml: 287 case fInnerXml:
288 if !saveXML.IsValid() { 288 if !saveXML.IsValid() {
289 saveXML = finfo.value(sv) 289 saveXML = finfo.value(sv)
290 if p.saved == nil { 290 if p.saved == nil {
291 saveXMLIndex = 0 291 saveXMLIndex = 0
292 p.saved = new(bytes.Buffer) 292 p.saved = new(bytes.Buffer)
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 case StartElement: 522 case StartElement:
523 if err := d.Skip(); err != nil { 523 if err := d.Skip(); err != nil {
524 return err 524 return err
525 } 525 }
526 case EndElement: 526 case EndElement:
527 return nil 527 return nil
528 } 528 }
529 } 529 }
530 panic("unreachable") 530 panic("unreachable")
531 } 531 }
LEFTRIGHT

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