(name string)
| 66 | } |
| 67 | |
| 68 | func isConstructorName(name string) bool { |
| 69 | return name == "New" || (len(name) > 3 && name[:3] == "New" && name[3] >= 'A' && name[3] <= 'Z') |
| 70 | } |
| 71 | |
| 72 | // inspectConstructionBody walks body and visits nodes that run as part of |
| 73 | // executing the constructor. Nested function literals are skipped unless they |