Class ScopeProdOverwrittenByScope

java.lang.Object
de.monticore.grammar.cocos.ScopeProdOverwrittenByScope
All Implemented Interfaces:
GrammarASTMCGrammarCoCo, GrammarVisitor2, de.monticore.visitor.IVisitor

public class ScopeProdOverwrittenByScope extends Object implements GrammarASTMCGrammarCoCo
checks if a prod is overwriting a prod of a super grammar and logs an error if both prods define a scope e.g. grammar A { scope Foo; } grammar B extends A { scope Foo; } only one of the prods can should a scope the scope property is inherited from the super prod and does not need to be defined again