C# Class ICSharpCode.ILSpy.Language

Base class for language-specific decompiler implementations.
Mostrar archivo Open project: aerror2/ILSpy-For-MacOSX Class Usage Examples

Public Methods

Method Description
DecompileAssembly ( LoadedAssembly assembly, ITextOutput output, DecompilationOptions options ) : void
DecompileEvent ( Mono.Cecil.EventDefinition ev, ITextOutput output, DecompilationOptions options ) : void
DecompileField ( FieldDefinition field, ITextOutput output, DecompilationOptions options ) : void
DecompileMethod ( Mono.Cecil.MethodDefinition method, ITextOutput output, DecompilationOptions options ) : void

/// Gets the syntax highlighting used for this language. ///

DecompileNamespace ( string nameSpace, IEnumerable types, ITextOutput output, DecompilationOptions options ) : void
DecompileProperty ( Mono.Cecil.PropertyDefinition property, ITextOutput output, DecompilationOptions options ) : void
DecompileType ( Mono.Cecil.TypeDefinition type, ITextOutput output, DecompilationOptions options ) : void
FormatPropertyName ( Mono.Cecil.PropertyDefinition property, bool isIndexer = null ) : string
FormatTypeName ( Mono.Cecil.TypeDefinition type ) : string
GetOriginalCodeLocation ( MemberReference member ) : MemberReference

Used by the analyzer to map compiler generated code back to the original code's location

GetTooltip ( MemberReference member ) : string

Converts a member signature to a string. This is used for displaying the tooltip on a member reference.

ShowMember ( MemberReference member ) : bool
ToString ( ) : string

Used for WPF keyboard navigation.

TypeToString ( TypeReference type, bool includeNamespace, ICustomAttributeProvider typeAttributes = null ) : string

Converts a type reference into a string. This method is used by the member tree node for parameter and return types.

WriteCommentLine ( ITextOutput output, string comment ) : void

Method Details

DecompileAssembly() public method

public DecompileAssembly ( LoadedAssembly assembly, ITextOutput output, DecompilationOptions options ) : void
assembly LoadedAssembly
output ITextOutput
options DecompilationOptions
return void

DecompileEvent() public method

public DecompileEvent ( Mono.Cecil.EventDefinition ev, ITextOutput output, DecompilationOptions options ) : void
ev Mono.Cecil.EventDefinition
output ITextOutput
options DecompilationOptions
return void

DecompileField() public method

public DecompileField ( FieldDefinition field, ITextOutput output, DecompilationOptions options ) : void
field Mono.Cecil.FieldDefinition
output ITextOutput
options DecompilationOptions
return void

DecompileMethod() public method

/// Gets the syntax highlighting used for this language. ///
public DecompileMethod ( Mono.Cecil.MethodDefinition method, ITextOutput output, DecompilationOptions options ) : void
method Mono.Cecil.MethodDefinition
output ITextOutput
options DecompilationOptions
return void

DecompileNamespace() public method

public DecompileNamespace ( string nameSpace, IEnumerable types, ITextOutput output, DecompilationOptions options ) : void
nameSpace string
types IEnumerable
output ITextOutput
options DecompilationOptions
return void

DecompileProperty() public method

public DecompileProperty ( Mono.Cecil.PropertyDefinition property, ITextOutput output, DecompilationOptions options ) : void
property Mono.Cecil.PropertyDefinition
output ITextOutput
options DecompilationOptions
return void

DecompileType() public method

public DecompileType ( Mono.Cecil.TypeDefinition type, ITextOutput output, DecompilationOptions options ) : void
type Mono.Cecil.TypeDefinition
output ITextOutput
options DecompilationOptions
return void

FormatPropertyName() public method

public FormatPropertyName ( Mono.Cecil.PropertyDefinition property, bool isIndexer = null ) : string
property Mono.Cecil.PropertyDefinition
isIndexer bool
return string

FormatTypeName() public method

public FormatTypeName ( Mono.Cecil.TypeDefinition type ) : string
type Mono.Cecil.TypeDefinition
return string

GetOriginalCodeLocation() public method

Used by the analyzer to map compiler generated code back to the original code's location
public GetOriginalCodeLocation ( MemberReference member ) : MemberReference
member Mono.Cecil.MemberReference
return Mono.Cecil.MemberReference

GetTooltip() public method

Converts a member signature to a string. This is used for displaying the tooltip on a member reference.
public GetTooltip ( MemberReference member ) : string
member Mono.Cecil.MemberReference
return string

ShowMember() public method

public ShowMember ( MemberReference member ) : bool
member Mono.Cecil.MemberReference
return bool

ToString() public method

Used for WPF keyboard navigation.
public ToString ( ) : string
return string

TypeToString() public method

Converts a type reference into a string. This method is used by the member tree node for parameter and return types.
public TypeToString ( TypeReference type, bool includeNamespace, ICustomAttributeProvider typeAttributes = null ) : string
type Mono.Cecil.TypeReference
includeNamespace bool
typeAttributes ICustomAttributeProvider
return string

WriteCommentLine() public method

public WriteCommentLine ( ITextOutput output, string comment ) : void
output ITextOutput
comment string
return void