/******************************************************************************
 * Copyright 2021 TypeFox GmbH
 * This program and the accompanying materials are made available under the
 * terms of the MIT License, which is available in the project root.
 ******************************************************************************/
import { DefaultFoldingRangeProvider } from '../../lsp/folding-range-provider.js';
import { isParserRule } from '../../languages/generated/ast.js';
/**
 * A specialized folding range provider for the grammar language
 */
export class LangiumGrammarFoldingRangeProvider extends DefaultFoldingRangeProvider {
    shouldProcessContent(node) {
        // Exclude parser rules from folding
        return !isParserRule(node);
    }
}//# sourceMappingURL=https://cdn.windsurf.com/sourcemaps/f90ca8311d630b9b77e7537222ecfce0a0ac990b/node_modules/langium/lib/grammar/lsp/grammar-folding-ranges.js.map