[codemirror] refactored extensive conditional
[codemirror] refactored extensive conditional

SQUASHED: AUTO-COMMIT-src-components-widgets-ast-capabilities.js,

LivelyKernel/lively4-core,LivelyKernel/lively4-core