tag variable and constant declarations as local or global for code generation