private void createImplicitVariableType ( XtextResource resource , IAcceptor < ? super ICodeMining > acceptor ) { createImplicitVarValType ( resource , acceptor , XtendVariableDeclaration . class , it -> it . getType ( ) , it -> { LightweightTypeReference type = getLightweightType ( it . getRight ( ) ) ; if ( type . isAny ( ) ) { type = getTypeForVariableDeclaration ( it . getRight ( ) ) ; } return type . getSimpleName ( ) ; } , it -> it . getRight ( ) , ( ) -> this . grammar . getXVariableDeclarationAccess ( ) . getRightAssignment_3_1 ( ) ) ; }
Add an annotation when the variable s type is implicit and inferred by the SARL compiler .