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
Example:
Usage of a on second line should be resolved to the definition global a
globala;
a =1;
To support actions for global variables such as 'go to declaration' or 'find usages' we need to modify resolve.
There is big article about resolve in IntelliJ IDEs: References and Resolve.
Example:
Usage of
a
on second line should be resolved to the definitionglobal a
To support actions for global variables such as 'go to declaration' or 'find usages' we need to modify resolve.
There is big article about resolve in IntelliJ IDEs: References and Resolve.
Usually we only need to add mixin for a declaration rule in bnf grammar e.g. mixin for class_declaration
After adding mixin the
MatlabResolvingScopeProcessor
will check these declarations during resolve process.But there is a problem with global variables: one statement may declare multiple variables.
So we need to:
global_variable_declarations
rule in newglobal_variable_declaration
ruleMatlabDeclarationBase
mixin toglobal_variable_declaration
(similar toclass_declaration
)MatlabBlockMixin
mixin toglobal_variable_declarations
(it will pass resolve processor to each variable declaration)ResolveTest
)Note: you don't need to resolve references from different files. It's a separate issue #24
The text was updated successfully, but these errors were encountered: