NewAttribute creates a new attribute with the given identifier string.
(att string)
| 1265 | |
| 1266 | // NewAttribute creates a new attribute with the given identifier string. |
| 1267 | func NewAttribute(att string) Attribute { |
| 1268 | return Attribute{ |
| 1269 | Scope: AttributeScopeNone, |
| 1270 | Parent: false, |
| 1271 | Name: att, |
| 1272 | Intrinsic: IntrinsicNone, |
| 1273 | } |
| 1274 | } |
| 1275 | |
| 1276 | // nolint: revive |
| 1277 | func (Attribute) __fieldExpression() {} |
no outgoing calls