private void createImplicitFieldType ( XtextResource resource , IAcceptor < ? super ICodeMining > acceptor ) { createImplicitVarValType ( resource , acceptor , XtendField . class , it -> it . getType ( ) , it -> { final JvmField inferredField = ( JvmField ) this . jvmModelAssocitions . getPrimaryJvmElement ( it ) ; if ( inferredField == null || inferredField . getType ( ) == null || inferredField . getType ( ) . eIsProxy ( ) ) { return null ; } return inferredField . getType ( ) . getSimpleName ( ) ; } , null , ( ) -> this . grammar . getAOPMemberAccess ( ) . getInitialValueAssignment_2_3_3_1 ( ) ) ; }
Add an annotation when the field s type is implicit and inferred by the SARL compiler .