toPluginElementKind property

ElementKind toPluginElementKind

Convert the element kind from the 'analyzer' package to an element kind defined by the plugin API.

This method does not take into account that an instance of ClassElement can be an enum and an instance of FieldElement can be an enum constant. Use _convertElementToElementKind where possible.

Implementation

plugin.ElementKind get toPluginElementKind =>
    _kindMap[this] ?? plugin.ElementKind.UNKNOWN;