lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.scoping.LFScopeProvider Class Reference

This class contains custom scoping description. More...

Inherits org.lflang.scoping.LFScopeProviderImpl.

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)

Detailed Description

This class contains custom scoping description.

See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping on how and when to use it.

Member Function Documentation

◆ getScope()

IScope org.lflang.scoping.LFScopeProviderImpl.getScope ( EObject context,
EReference reference )
inherited

Depending on the provided context, construct the appropriate scope for the given reference.

Parameters
contextThe AST node in which a to-be-resolved reference occurs.
referenceThe reference to resolve.

◆ getScopeForAssignment()

IScope org.lflang.scoping.LFScopeProviderImpl.getScopeForAssignment ( Assignment assignment,
EReference reference )
protectedinherited

◆ getScopeForImportedReactor()

IScope org.lflang.scoping.LFScopeProviderImpl.getScopeForImportedReactor ( ImportedReactor context,
EReference reference )
protectedinherited

Filter out candidates that do not originate from the file listed in this particular import statement.

◆ getScopeForParameterReference()

IScope org.lflang.scoping.LFScopeProviderImpl.getScopeForParameterReference ( ParameterReference term,
EReference reference )
protectedinherited

◆ getScopeForReactorDecl()

IScope org.lflang.scoping.LFScopeProviderImpl.getScopeForReactorDecl ( EObject obj,
EReference reference )
protectedinherited
Parameters
objInstantiation or Reactor that has a ReactorDecl to resolve.
referenceThe reference to link to a ReactorDecl node.

◆ getScopeForVarRef()

IScope org.lflang.scoping.LFScopeProviderImpl.getScopeForVarRef ( VarRef variable,
EReference reference )
protectedinherited

◆ getScopeForWidthTerm()

IScope org.lflang.scoping.LFScopeProviderImpl.getScopeForWidthTerm ( WidthTerm term,
EReference reference )
protectedinherited

The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/scoping/LFScopeProvider.java