Beispiel #1
0
        /// <summary>
        /// Parse and register the given sourcemap in the collection using the SourceMap's File as name.
        /// </summary>
        /// <param name="sourceMapContent">A string containing an encoded SourceMap.</param>
        public void ParseAndRegister(string sourceMapContent)
        {
            var sourceMap = SourceMapParser.Parse(sourceMapContent);

            if (string.IsNullOrEmpty(sourceMap.File))
            {
                throw new ArgumentException("sourceMap has no associated filename.");
            }

            _sourceMaps.Add(sourceMap.File !, sourceMap);
        }
Beispiel #2
0
 /// <summary>
 /// Parse and register the given sourcemap in the collection using the given name.
 /// </summary>
 /// <param name="name">The name to register the SourceMap as</param>
 /// <param name="sourceMapContent">A string containing an encoded SourceMap.</param>
 public void ParseAndRegister(string name, string sourceMapContent)
 {
     _sourceMaps.Add(name, SourceMapParser.Parse(sourceMapContent));
 }