GoTypeRef returns the Go code that refers to the Go type which matches the given attribute type.
(att *expr.AttributeExpr)
| 253 | // GoTypeRef returns the Go code that refers to the Go type which matches the |
| 254 | // given attribute type. |
| 255 | func (s *NameScope) GoTypeRef(att *expr.AttributeExpr) string { |
| 256 | name := s.GoTypeName(att) |
| 257 | return goTypeRef(name, att.Type) |
| 258 | } |
| 259 | |
| 260 | // GoTypeRefWithDefaults returns the Go code that refers to the Go type which |
| 261 | // matches the given attribute type. The result of this function differs from |
no test coverage detected