protected void addLocalToCurrentScope ( XExpression expression , ITypeComputationState state ) { if ( expression instanceof XVariableDeclaration ) { addLocalToCurrentScope ( ( XVariableDeclaration ) expression , state ) ; } }
If the expression is a variable declaration then add it to the current scope ; DSLs introducing new containers for variable declarations should override this method and explicitly add nested variable declarations .