Code coverage report for lib/cssLanguageService.js

# all files / lib/ cssLanguageService.js

89.66% Statements 26/29
40% Branches 4/10
100% Functions 6/6
92.86% Lines 26/28

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    551×
    1×
    1×
    1×

    1×
    1×
    1×
    1×
    1×
    1×
    1×
    1×
    1×
    1×
    1×
    1×
    70×

    1×
    44×

    1×
    1×
    18×

    1×
    1×
    8×

    1×

     (function (factory) {
        Eif (typeof module === "object" && typeof module.exports === "object") {
            var v = factory(require, exports);
            Iif (v !== undefined) module.exports = v;
        }
        else if (typeof define === "function" && define.amd) {
            define(["require", "exports", "./parser/cssParser", "./services/cssCompletion", "./services/cssHover", "./services/cssNavigation", "./services/cssCodeActions", "./services/cssValidation", "./parser/scssParser", "./services/scssCompletion", "./parser/lessParser", "./services/lessCompletion"], factory);
        }
    })(function (require, exports) {
        /*---------------------------------------------------------------------------------------------
         *  Copyright (c) Microsoft Corporation. All rights reserved.
         *  Licensed under the MIT License. See License.txt in the project root for license information.
         *--------------------------------------------------------------------------------------------*/
        'use strict';
        Object.defineProperty(exports, "__esModule", { value: true });
        var cssParser_1 = require("./parser/cssParser");
        var cssCompletion_1 = require("./services/cssCompletion");
        var cssHover_1 = require("./services/cssHover");
        var cssNavigation_1 = require("./services/cssNavigation");
        var cssCodeActions_1 = require("./services/cssCodeActions");
        var cssValidation_1 = require("./services/cssValidation");
        var scssParser_1 = require("./parser/scssParser");
        var scssCompletion_1 = require("./services/scssCompletion");
        var lessParser_1 = require("./parser/lessParser");
        var lessCompletion_1 = require("./services/lessCompletion");
        function createFacade(parser, completion, hover, navigation, codeActions, validation) {
            return {
                configure: validation.configure.bind(validation),
                doValidation: validation.doValidation.bind(validation),
                parseStylesheet: parser.parseStylesheet.bind(parser),
                doComplete: completion.doComplete.bind(completion),
                doHover: hover.doHover.bind(hover),
                findDefinition: navigation.findDefinition.bind(navigation),
                findReferences: navigation.findReferences.bind(navigation),
                findDocumentHighlights: navigation.findDocumentHighlights.bind(navigation),
                findDocumentSymbols: navigation.findDocumentSymbols.bind(navigation),
                doCodeActions: codeActions.doCodeActions.bind(codeActions),
                findColorSymbols: navigation.findColorSymbols.bind(navigation),
                doRename: navigation.doRename.bind(navigation),
            };
        }
        function getCSSLanguageService() {
            return createFacade(new cssParser_1.Parser(), new cssCompletion_1.CSSCompletion(), new cssHover_1.CSSHover(), new cssNavigation_1.CSSNavigation(), new cssCodeActions_1.CSSCodeActions(), new cssValidation_1.CSSValidation);
        }
        exports.getCSSLanguageService = getCSSLanguageService;
        function getSCSSLanguageService() {
            return createFacade(new scssParser_1.SCSSParser(), new scssCompletion_1.SCSSCompletion(), new cssHover_1.CSSHover(), new cssNavigation_1.CSSNavigation(), new cssCodeActions_1.CSSCodeActions(), new cssValidation_1.CSSValidation);
        }
        exports.getSCSSLanguageService = getSCSSLanguageService;
        function getLESSLanguageService() {
            return createFacade(new lessParser_1.LESSParser(), new lessCompletion_1.LESSCompletion(), new cssHover_1.CSSHover(), new cssNavigation_1.CSSNavigation(), new cssCodeActions_1.CSSCodeActions(), new cssValidation_1.CSSValidation);
        }
        exports.getLESSLanguageService = getLESSLanguageService;
    });
    //# sourceMappingURL=cssLanguageService.js.map