The IDE supports auto-completion of an identifier referencing to a declaration.
-
Complete type references.
-
Complete function references.
-
Complete variable references.
-
Complete parameter references.
-
If necessary, imports are added automatically to complete reference to declaration .
- Precondition
-
-
- Postcondition
-
- Description
-
There might be multiple declarations in project (or in dependent projects) with . If the declaration is not local, then a named import may be created by the content assist:
-
If the declaration is local, no import is created
-
If an import enabling access to the declaration already exists, no other import is created.
-
If an alias already exists, the alias name is used, even if the prefix was different when the content assist was activated.
-
If the import would conflict with an existing member, an alias is proposed along with the import. Linked editing helps to choose a proper alias.
-
All imports from a single module are done within a single import declaration. The exception to this rule are wildcard imports that provide a simple name which is currently unused. In that case, a new import may be necessary to disambiguate the wildcard.
-
-
If the identifier reference refers to a function (or method), an opening and a closing parenthesis are appended and the cursor is positioned between these two parentheses.