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


C# ISyntaxHighlightOutput类代码示例

本文整理汇总了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);
		}
开发者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


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