| // Copyright 2011 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| `Rename html's Tokenizer.Error method to Err. |
| http://codereview.appspot.com/5327064/ |
| var htmlerrTypeConfig = &TypeConfig{ |
| "html.NewTokenizer": "html.Tokenizer", |
| func htmlerr(f *ast.File) bool { |
| typeof, _ := typecheck(htmlerrTypeConfig, f) |
| walk(f, func(n interface{}) { |
| s, ok := n.(*ast.SelectorExpr) |
| if ok && typeof[s.X] == "html.Tokenizer" && s.Sel.Name == "Error" { |