You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, there is one list of reserved names which get escaped when used as an identifier.
This list includes reserved keywords in dart (like class) and names which are reserved by built_value (like 'toJson') and cannot be used as name for a field in built_value.
Since we also generate top-level constants, this single list is too restrictive and might lead to escaping of names when it is not needed.
Example: It is valid to define a top-level constant with the name 'rebuild', but we would still escape the name of the top-level constants which is generated from a directive like
directive@rebuildonFIELD_DEFINITION
to Grebuild
The text was updated successfully, but these errors were encountered:
Right now, there is one list of reserved names which get escaped when used as an identifier.
This list includes reserved keywords in dart (like
class
) and names which are reserved by built_value (like 'toJson') and cannot be used as name for a field in built_value.Since we also generate top-level constants, this single list is too restrictive and might lead to escaping of names when it is not needed.
Example: It is valid to define a top-level constant with the name 'rebuild', but we would still escape the name of the top-level constants which is generated from a directive like
to
Grebuild
The text was updated successfully, but these errors were encountered: