![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
This class enforces custom rules. More...
Inherits AbstractLFScopeProvider.
Inherited by org.lflang.scoping.LFScopeProvider.
Classes | |
| enum | RefType |
| Enumerate of the kinds of references. More... | |
Public Member Functions | |
| IScope | getScope (EObject context, EReference reference) |
| Depending on the provided context, construct the appropriate scope for the given reference. | |
Protected Member Functions | |
| IScope | getScopeForAssignment (Assignment assignment, EReference reference) |
| IScope | getScopeForImportedReactor (ImportedReactor context, EReference reference) |
| Filter out candidates that do not originate from the file listed in this particular import statement. | |
| IScope | getScopeForParameterReference (ParameterReference term, EReference reference) |
| IScope | getScopeForReactorDecl (EObject obj, EReference reference) |
| IScope | getScopeForVarRef (VarRef variable, EReference reference) |
| IScope | getScopeForWidthTerm (WidthTerm term, EReference reference) |
This class enforces custom rules.
In particular, it resolves references to parameters, ports, actions, and timers. Ports can be referenced across at most one level of hierarchy. Parameters, actions, and timers can be referenced locally, within the reactor.
| IScope org.lflang.scoping.LFScopeProviderImpl.getScope | ( | EObject | context, |
| EReference | reference ) |
Depending on the provided context, construct the appropriate scope for the given reference.
| context | The AST node in which a to-be-resolved reference occurs. |
| reference | The reference to resolve. |
|
protected |
|
protected |
Filter out candidates that do not originate from the file listed in this particular import statement.
|
protected |
|
protected |
| obj | Instantiation or Reactor that has a ReactorDecl to resolve. |
| reference | The reference to link to a ReactorDecl node. |
|
protected |
|
protected |