Package org.ek9lang.compiler.phase2
Class CheckVisibilityOfOperations
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.phase2.CheckVisibilityOfOperations
- All Implemented Interfaces:
Consumer<IAggregateSymbol>
Does a simple check (excluding any inheritance) for visibility rules on methods/operators on
aggregates, such as classes, components, services, traits and dynamic classes.
Also limits ability to add methods other than constructors and operators to records.
Classes are not missing, here they just support public, protected and private.
Whereas the other constructs support different variations.
Also note that there is no need to check service web methods or operators as there is now way
in the grammar to express an access modifier.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorsConstructorDescriptionCheckVisibilityOfOperations
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create a new operations checker an aggregates. -
Method Summary
-
Constructor Details
-
CheckVisibilityOfOperations
CheckVisibilityOfOperations(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create a new operations checker an aggregates.
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<IAggregateSymbol>
-