@ Check public void checkContainerType ( SarlCapacity capacity ) { final XtendTypeDeclaration declaringType = capacity . getDeclaringType ( ) ; if ( declaringType != null ) { final String name = canonicalName ( declaringType ) ; assert name != null ; error ( MessageFormat . format ( Messages . SARLValidator_30 , name ) , capacity , null , INVALID_NESTED_DEFINITION ) ; } }
Check the container for the SARL capacities .