private void PopulateMap(string targetFileContents, string mapFileContents) { SourceMapDefinition map = null; try { map = JsonConvert.DeserializeObject <SourceMapDefinition>(mapFileContents); } catch { } if (map == null) { return; } try { MapNodes = Base64Vlq.Decode(map.mappings, _directory, map.sources).ToList(); if (MapNodes.Count() == 0) { return; } } catch (VlqException vlqExcept) { Logger.Log("VLQ: " + vlqExcept.Message); return; } CollectRules(targetFileContents).DoNotWait("collecting maps"); }
private void PopulateMap(string targetFileName, string mapFileName) { var map = new SourceMapDefinition(); try { map = Json.Decode<SourceMapDefinition>(File.ReadAllText(mapFileName)); } catch { return; } MapNodes = Base64Vlq.Decode(map.mappings, _directory, map.sources); if (MapNodes.Count() == 0) return; CollectRules(targetFileName); }