Esempio n. 1
0
        public async static Task <CssSourceMap> Create(string targetFileContents, string mapFileContents, string directory, IContentType contentType)
        {
            CssSourceMap map = new CssSourceMap();

            await Task.Run(() => map.Initialize(targetFileContents, mapFileContents, directory, contentType));

            return(map);
        }
        public async static Task<CssSourceMap> Create(string targetFileContents, string mapFileContents, string directory, IContentType contentType)
        {
            CssSourceMap map = new CssSourceMap();

            await Task.Run(() => map.Initialize(targetFileContents, mapFileContents, directory, contentType));

            return map;
        }
Esempio n. 3
0
        public async static Task<CssSourceMap> Create(string targetFileContents, string mapFileContents, string directory, IContentType contentType)
        {
            CssSourceMap map = new CssSourceMap();

            map.MapNodes = Enumerable.Empty<CssSourceMapNode>();

            if (WESettings.Instance.ForContentType<ICssSourceMapSettings>(contentType).ProcessSourceMapsForEditorEnhancements)
                await Task.Run(() => map.Initialize(targetFileContents, mapFileContents, directory, contentType));

            return map;
        }
Esempio n. 4
0
        public async static Task <CssSourceMap> Create(string targetFileContents, string mapFileContents, string directory, IContentType contentType)
        {
            CssSourceMap map = new CssSourceMap();

            map.MapNodes = Enumerable.Empty <CssSourceMapNode>();

            if (WESettings.Instance.ForContentType <ICssSourceMapSettings>(contentType).ProcessSourceMapsForEditorEnhancements)
            {
                await Task.Run(() => map.Initialize(targetFileContents, mapFileContents, directory, contentType));
            }

            return(map);
        }