AddName records name as visible in the current scope. This method does not check for naming collisions, and consequently will not modify the given name in any way. It's recommended that you first check MethodScope.NameExists to determine if the name has any collisions, or use MethodScope.AllocateNam
(name string)
| 210 | // way. It's recommended that you first check MethodScope.NameExists to determine |
| 211 | // if the name has any collisions, or use MethodScope.AllocateName. |
| 212 | func (m *MethodScope) AddName(name string) { |
| 213 | m.visibleNames[name] = nil |
| 214 | } |
| 215 | |
| 216 | // NameExists returns whether or not the name is currently visible in the scope. |
| 217 | func (m *MethodScope) NameExists(name string) bool { |
no outgoing calls
no test coverage detected