protected void WriteToken(AssemblyManifest.Token token) { if (Stubbed && Configuration.GenerateSkeletonsForStubbedAssemblies.GetValueOrDefault(false)) { int id = int.Parse(token.IDString.Replace("$asm", ""), NumberStyles.HexNumber); WriteRaw("${1}[{0}]", id, Configuration.AssemblyCollectionName ?? "asms"); } else { WriteRaw(token.IDString); } }
public JavascriptFormatter( TextWriter output, ITypeInfoSource typeInfo, AssemblyManifest manifest, AssemblyDefinition assembly, Configuration configuration, bool stubbed ) { Output = output; TypeInfo = typeInfo; Manifest = manifest; Assembly = assembly; Configuration = configuration; Stubbed = stubbed; PrivateToken = Manifest.GetPrivateToken(assembly); Manifest.AssignIdentifiers(); }