import * as css from "css" ; import CssClassDefinition from "../../common/css-class-definition" ; import CssClassExtractor from "../common/css-class-extractor" ; import IParseEngine from "../common/parse-engine" ; import ISimpleTextDocument from "../common/simple-text-document" ; class CssParseEngine implements IParseEngine { public languageId = "css" ; public extension = "css" ; public async parse ( textDocument ) { const code = textDocument . getText ( ) ; const codeAst = css . parse ( code ) ; return CssClassExtractor . extract ( codeAst ) ; } } export default CssParseEngine ;