@ Check ( CheckType . FAST ) public void checkActionName ( SarlAction action ) { final JvmOperation inferredType = this . associations . getDirectlyInferredOperation ( action ) ; final QualifiedName name = QualifiedName . create ( inferredType . getQualifiedName ( ' ' ) . split ( "\\." ) ) ; //$NON-NLS-1$ if ( this . featureNames . isDisallowedName ( name ) ) { final String validName = Utils . fixHiddenMember ( action . getName ( ) ) ; error ( MessageFormat . format ( Messages . SARLValidator_39 , action . getName ( ) ) , action , XTEND_FUNCTION__NAME , ValidationMessageAcceptor . INSIGNIFICANT_INDEX , INVALID_MEMBER_NAME , validName ) ; } else if ( ! isIgnored ( DISCOURAGED_FUNCTION_NAME ) && this . featureNames . isDiscouragedName ( name ) ) { warning ( MessageFormat . format ( Messages . SARLValidator_39 , action . getName ( ) ) , action , XTEND_FUNCTION__NAME , ValidationMessageAcceptor . INSIGNIFICANT_INDEX , DISCOURAGED_FUNCTION_NAME ) ; } }
Check if the given action has a valid name .