当前位置: 首页>>代码示例>>C#>>正文


C# ISyntaxHighlightOutput.Write方法代码示例

本文整理汇总了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);
		}
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:7,代码来源:BreakpointPrinter.cs

示例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);
		}
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:9,代码来源:ImageSectionHeaderNode.cs

示例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);
			}
		}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:9,代码来源:MetaDataTableRecordNode.cs

示例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);
 }
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:9,代码来源:NodePrinter.cs

示例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);
		}
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:11,代码来源:MethodNode.cs

示例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);
		}
开发者ID:levisre,项目名称:dnSpy,代码行数:12,代码来源:AssemblyFileNode.cs

示例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);
 }
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:8,代码来源:NodePrinter.cs

示例8: WritePropertyInfo

		void WritePropertyInfo(ISyntaxHighlightOutput output) {
			output.Write(ReadStringsHeap(1), TextTokenKind.InstanceProperty);
		}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:3,代码来源:MetaDataTableRecordNode.cs

示例9: WriteModuleRefInfo

		void WriteModuleRefInfo(ISyntaxHighlightOutput output) {
			output.Write(ReadStringsHeap(0), TextTokenKind.Module);
		}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:3,代码来源:MetaDataTableRecordNode.cs

示例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);
 }
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:8,代码来源:DerivedTypeNode.cs

示例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);
		}
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:5,代码来源:FieldNode.cs

示例12: WriteImplMapInfo

		void WriteImplMapInfo(ISyntaxHighlightOutput output) {
			output.Write(ReadStringsHeap(2), TextTokenKind.InstanceMethod);
		}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:3,代码来源:MetaDataTableRecordNode.cs

示例13: Write

 protected override void Write(ISyntaxHighlightOutput output, ILanguage language)
 {
     output.Write(dnSpy_Resources.BaseTypeFolder, TextTokenKind.Text);
 }
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:4,代码来源:BaseTypeFolderNode.cs

示例14: Write

		protected override void Write(ISyntaxHighlightOutput output) {
			output.Write(dnSpy_AsmEditor_Resources.HexNode_TablesStream, TextTokenKind.InstanceField);
		}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:3,代码来源:TablesStreamNode.cs

示例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);
		}
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:9,代码来源:MetaDataTableNode.cs


注:本文中的ISyntaxHighlightOutput.Write方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。