本文整理汇总了C#中ISyntaxHighlightOutput.Write方法的典型用法代码示例。如果您正苦于以下问题:C# ISyntaxHighlightOutput.Write方法的具体用法?C# ISyntaxHighlightOutput.Write怎么用?C# ISyntaxHighlightOutput.Write使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ISyntaxHighlightOutput
的用法示例。
在下文中一共展示了ISyntaxHighlightOutput.Write方法的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(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);
}
示例3: 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);
}
}
示例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.Write(DnSpyFile.AssemblyDef);
output.WriteLine();
output.Write(TargetFrameworkInfo.Create(DnSpyFile.AssemblyDef.ManifestModule).ToString(), TextTokenKind.EnumField);
output.WriteLine();
output.Write(TargetFrameworkUtils.GetArchString(DnSpyFile.AssemblyDef.ManifestModule), TextTokenKind.EnumField);
output.WriteLine();
output.WriteFilename(DnSpyFile.Filename);
}
示例7: 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);
}
示例8: WritePropertyInfo
void WritePropertyInfo(ISyntaxHighlightOutput output) {
output.Write(ReadStringsHeap(1), TextTokenKind.InstanceProperty);
}
示例9: WriteModuleRefInfo
void WriteModuleRefInfo(ISyntaxHighlightOutput output) {
output.Write(ReadStringsHeap(0), TextTokenKind.Module);
}
示例10: Write
protected override void Write(ISyntaxHighlightOutput output, ILanguage language)
{
var td = TryGetTypeDef();
if (td == null)
output.Write("???", TextTokenKind.Error);
else
new NodePrinter().Write(output, language, td, Context.ShowToken);
}
示例11: Write
protected override void Write(ISyntaxHighlightOutput output, ILanguage language) {
language.WriteType(output, analyzedField.DeclaringType, true);
output.Write(".", TextTokenKind.Operator);
new NodePrinter().Write(output, language, analyzedField, Context.ShowToken);
}
示例12: WriteImplMapInfo
void WriteImplMapInfo(ISyntaxHighlightOutput output) {
output.Write(ReadStringsHeap(2), TextTokenKind.InstanceMethod);
}
示例13: Write
protected override void Write(ISyntaxHighlightOutput output, ILanguage language)
{
output.Write(dnSpy_Resources.BaseTypeFolder, TextTokenKind.Text);
}
示例14: Write
protected override void Write(ISyntaxHighlightOutput output) {
output.Write(dnSpy_AsmEditor_Resources.HexNode_TablesStream, TextTokenKind.InstanceField);
}
示例15: Write
protected override void Write(ISyntaxHighlightOutput output) {
output.Write(string.Format("{0:X2}", (byte)tablesStreamVM.Table), TextTokenKind.Number);
output.WriteSpace();
output.Write(string.Format("{0}", tablesStreamVM.Table), TextTokenKind.Type);
output.WriteSpace();
output.Write("(", TextTokenKind.Operator);
output.Write(string.Format("{0}", tablesStreamVM.Rows), TextTokenKind.Number);
output.Write(")", TextTokenKind.Operator);
}