本文整理汇总了C#中ISyntaxHighlightOutput类的典型用法代码示例。如果您正苦于以下问题:C# ISyntaxHighlightOutput类的具体用法?C# ISyntaxHighlightOutput怎么用?C# ISyntaxHighlightOutput使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISyntaxHighlightOutput类属于命名空间,在下文中一共展示了ISyntaxHighlightOutput类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WriteILOffset
void WriteILOffset(ISyntaxHighlightOutput output, uint offset) {
// Offsets are always in hex
if (offset <= ushort.MaxValue)
output.Write(string.Format(GetHexFormatUInt16(), offset), TextTokenKind.Number);
else
output.Write(string.Format(GetHexFormatUInt32(), offset), TextTokenKind.Number);
}
示例2: Write
protected override void Write(ISyntaxHighlightOutput output) {
output.Write(string.Format("{0}", index + 1), TextTokenKind.Number);
if (infoTuple != null) {
output.WriteSpace();
output.Write("-", TextTokenKind.Operator);
output.WriteSpace();
infoTuple.Item2(output);
}
}
示例3: Write
protected override void Write(ISyntaxHighlightOutput output) {
output.Write(dnSpy_AsmEditor_Resources.HexNode_PE_Section, TextTokenKind.Keyword);
output.WriteSpace();
output.Write("#", TextTokenKind.Operator);
output.Write(sectionNumber.ToString(), TextTokenKind.Number);
output.Write(":", TextTokenKind.Operator);
output.WriteSpace();
output.Write(string.Format("{0}", imageSectionHeaderVM.NameVM.String), TextTokenKind.Type);
}
示例4: Write
public void Write(ISyntaxHighlightOutput output, ILanguage language, IDnSpyFile file)
{
var filename = GetFilename(file);
var peImage = file.PEImage;
if (peImage != null)
output.Write(NameUtils.CleanName(filename), IsExe(peImage) ? TextTokenKind.AssemblyExe : TextTokenKind.Assembly);
else
output.Write(NameUtils.CleanName(filename), TextTokenKind.Text);
}
示例5: Write
protected override void Write(ISyntaxHighlightOutput output, ILanguage language) {
if (hidesParent) {
output.Write("(", TextTokenKind.Operator);
output.Write(dnSpy_Analyzer_Resources.HidesParent, TextTokenKind.Text);
output.Write(")", TextTokenKind.Operator);
output.WriteSpace();
}
language.WriteType(output, analyzedMethod.DeclaringType, true);
output.Write(".", TextTokenKind.Operator);
new NodePrinter().Write(output, language, analyzedMethod, Context.ShowToken);
}
示例6: WriteToolTip
protected override void WriteToolTip(ISyntaxHighlightOutput output, ILanguage language) {
output.WriteModule(DnSpyFile.ModuleDef.Name);
output.WriteLine();
output.Write(TargetFrameworkInfo.Create(DnSpyFile.ModuleDef).ToString(), TextTokenKind.EnumField);
output.WriteLine();
output.Write(TargetFrameworkUtils.GetArchString(DnSpyFile.ModuleDef), TextTokenKind.EnumField);
output.WriteLine();
output.WriteFilename(DnSpyFile.Filename);
}
示例7: SyntaxHighlightOutputToTextOutput
SyntaxHighlightOutputToTextOutput(ISyntaxHighlightOutput output) {
this.output = output;
this.line = 1;
this.col = 1;
this.indent = 0;
}
示例8: Create
/// <summary>
/// Creates a new <see cref="ITextOutput"/> instance
/// </summary>
/// <param name="output">Output to use</param>
/// <returns></returns>
public static ITextOutput Create(ISyntaxHighlightOutput output) {
return new SyntaxHighlightOutputToTextOutput(output);
}
示例9: Write
public void Write(ISyntaxHighlightOutput output, TypeFormatFlags flags) {
debugger.Dispatcher.UI(() => prop.Write(new OutputConverter(output), (TypePrinterFlags)flags));
}
示例10: Write
protected override void Write(ISyntaxHighlightOutput output, ILanguage language) {
new NodePrinter().Write(output, language, DnSpyFile);
}
示例11: WriteToolTip
protected override void WriteToolTip(ISyntaxHighlightOutput output, ILanguage language)
{
output.Write(DnSpyFile.AssemblyDef);
output.WriteLine();
output.Write(ExeUtils.GetDotNetVersion(DnSpyFile.AssemblyDef.ManifestModule), TextTokenKind.EnumField);
output.WriteLine();
output.Write(ExeUtils.GetArchString(DnSpyFile.AssemblyDef.ManifestModule), TextTokenKind.EnumField);
output.WriteLine();
output.WriteFilename(DnSpyFile.Filename);
}
示例12: WriteToken
void WriteToken(ISyntaxHighlightOutput output, IMDTokenProvider tok, bool showToken)
{
if (!showToken)
return;
output.WriteSpace();
output.Write("@", TextTokenKind.Operator);
output.Write(string.Format("{0:X8}", tok.MDToken.Raw), TextTokenKind.Number);
}
示例13: WriteNamespace
public void WriteNamespace(ISyntaxHighlightOutput output, ILanguage language, string name)
{
output.WriteNamespace(name);
}
示例14: Write
protected override void Write(ISyntaxHighlightOutput output, ILanguage language)
{
output.Write(dnSpy_Resources.BaseTypeFolder, TextTokenKind.Text);
}
示例15: Write
protected override void Write(ISyntaxHighlightOutput output, ILanguage language)
{
new NodePrinter().Write(output, language, DnSpyFile.AssemblyDef, false, Context.ShowAssemblyVersion, Context.ShowAssemblyPublicKeyToken);
}