• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ISyntaxHighlightOutput类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ISyntaxHighlightOutput的典型用法代码示例。如果您正苦于以下问题:C# ISyntaxHighlightOutput类的具体用法?C# ISyntaxHighlightOutput怎么用?C# ISyntaxHighlightOutput使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ISyntaxHighlightOutput类属于命名空间,在下文中一共展示了ISyntaxHighlightOutput类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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(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


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


示例7: SyntaxHighlightOutputToTextOutput

		SyntaxHighlightOutputToTextOutput(ISyntaxHighlightOutput output) {
			this.output = output;
			this.line = 1;
			this.col = 1;
			this.indent = 0;
		}
开发者ID:levisre,项目名称:dnSpy,代码行数:6,代码来源:SyntaxHighlightOutputToTextOutput.cs


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


示例9: Write

		public void Write(ISyntaxHighlightOutput output, TypeFormatFlags flags) {
			debugger.Dispatcher.UI(() => prop.Write(new OutputConverter(output), (TypePrinterFlags)flags));
		}
开发者ID:levisre,项目名称:dnSpy,代码行数:3,代码来源:DebuggerProperty.cs


示例10: Write

		protected override void Write(ISyntaxHighlightOutput output, ILanguage language) {
			new NodePrinter().Write(output, language, DnSpyFile);
		}
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:3,代码来源:PEFileNode.cs


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


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


示例13: WriteNamespace

 public void WriteNamespace(ISyntaxHighlightOutput output, ILanguage language, string name)
 {
     output.WriteNamespace(name);
 }
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:4,代码来源:NodePrinter.cs


示例14: Write

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


示例15: Write

 protected override void Write(ISyntaxHighlightOutput output, ILanguage language)
 {
     new NodePrinter().Write(output, language, DnSpyFile.AssemblyDef, false, Context.ShowAssemblyVersion, Context.ShowAssemblyPublicKeyToken);
 }
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:4,代码来源:AssemblyFileNode.cs


示例16: Write

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


示例17: 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


示例18: Write

 protected override void Write(ISyntaxHighlightOutput output, ILanguage language)
 {
     new NodePrinter().Write(output, language, property, Context.ShowToken, null);
 }
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:4,代码来源:PropertyNode.cs


示例19: WriteToolTip

		protected override void WriteToolTip(ISyntaxHighlightOutput output, ILanguage language) {
			output.Write(TargetFrameworkUtils.GetArchString(DnSpyFile.PEImage.ImageNTHeaders.FileHeader.Machine), TextTokenKind.EnumField);

			output.WriteLine();
			output.WriteFilename(DnSpyFile.Filename);
		}
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:6,代码来源:PEFileNode.cs


示例20: Write

		protected override void Write(ISyntaxHighlightOutput output, ILanguage language) {
			output.WriteFilename(Path.GetFileName(file.Filename));
		}
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:3,代码来源:NewDnSpyFile.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ISyntaxRegion类代码示例发布时间:2022-05-24
下一篇:
C# ISyntaxFactsService类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap