get {
if (_array_length == null) {
if (node.get_attribute ("NoArrayLength") != null) {
- // deprecated
+ Report.deprecated (node.source_reference, "[NoArrayLength] is deprecated, use [CCode (array_length = false)] instead.");
_array_length = false;
} else if (ccode != null && ccode.has_argument ("array_length")) {
_array_length = ccode.get_bool ("array_length");
bool profile = m.get_attribute ("Profile") != null;
- if (m.get_attribute ("NoArrayLength") != null) {
- Report.deprecated (m.source_reference, "NoArrayLength attribute is deprecated, use [CCode (array_length = false)] instead.");
- }
-
if (m is CreationMethod) {
var cl = current_type_symbol as Class;
if (cl != null && !cl.is_compact) {
"Flags", "",
"Experimental", "",
"NoReturn", "",
+ "NoArrayLength", "", // deprecated
"Assert", "",
"ErrorBase", "",
"GenericAccessors", "",