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 targetFileContents, string mapFileContents) { SourceMapDefinition map; try { map = Json.Decode <SourceMapDefinition>(mapFileContents); } catch { return; } MapNodes = Base64Vlq.Decode(map.mappings, _directory, map.sources); if (MapNodes.Count() == 0) { return; } CollectRules(targetFileContents).DoNotWait("collecting maps"); }