@ Check public void checkUnmodifiableEventAccess ( SarlBehaviorUnit unit ) { final boolean enable1 = ! isIgnored ( DISCOURAGED_OCCURRENCE_READONLY_USE ) ; final XExpression root = unit . getExpression ( ) ; final String occurrenceKw = this . grammarAccess . getOccurrenceKeyword ( ) ; for ( final XFeatureCall child : EcoreUtil2 . getAllContentsOfType ( root , XFeatureCall . class ) ) { if ( occurrenceKw . equals ( child . getFeature ( ) . getIdentifier ( ) ) ) { checkUnmodifiableFeatureAccess ( enable1 , child , occurrenceKw ) ; } } }
Check for usage of the event functions in the behavior units .