/// <summary> /// Create an instance of a source map writer of the given name and from the given base stream. /// </summary> /// <param name="writer">base stream</param> /// <param name="implementationName">implementation name to create</param> /// <returns>instance of a source map writer</returns> public static IJsSourceMap Create(TextWriter writer, string implementationName) { IJsSourceMap implementation = null; // which implementation to instantiate? if (string.Compare(implementationName, JsV3SourceMap.ImplementationName, StringComparison.OrdinalIgnoreCase) == 0) { implementation = new JsV3SourceMap(writer); } else if (string.Compare(implementationName, JsScriptSharpSourceMap.ImplementationName, StringComparison.OrdinalIgnoreCase) == 0) { implementation = new JsScriptSharpSourceMap(writer); } return implementation; }
/// <summary> /// Create an instance of a source map writer of the given name and from the given base stream. /// </summary> /// <param name="writer">base stream</param> /// <param name="implementationName">implementation name to create</param> /// <returns>instance of a source map writer</returns> public static IJsSourceMap Create(TextWriter writer, string implementationName) { IJsSourceMap implementation = null; // which implementation to instantiate? if (string.Compare(implementationName, JsV3SourceMap.ImplementationName, StringComparison.OrdinalIgnoreCase) == 0) { implementation = new JsV3SourceMap(writer); } else if (string.Compare(implementationName, JsScriptSharpSourceMap.ImplementationName, StringComparison.OrdinalIgnoreCase) == 0) { implementation = new JsScriptSharpSourceMap(writer); } return(implementation); }