|
|
@ -1429,6 +1429,9 @@ namespace ICSharpCode.Decompiler.CSharp |
|
|
|
EntityDeclaration DoDecompile(IMethod method, DecompileRun decompileRun, ITypeResolveContext decompilationContext) |
|
|
|
EntityDeclaration DoDecompile(IMethod method, DecompileRun decompileRun, ITypeResolveContext decompilationContext) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Debug.Assert(decompilationContext.CurrentMember == method); |
|
|
|
Debug.Assert(decompilationContext.CurrentMember == method); |
|
|
|
|
|
|
|
var watch = System.Diagnostics.Stopwatch.StartNew(); |
|
|
|
|
|
|
|
try |
|
|
|
|
|
|
|
{ |
|
|
|
var typeSystemAstBuilder = CreateAstBuilder(decompileRun.Settings); |
|
|
|
var typeSystemAstBuilder = CreateAstBuilder(decompileRun.Settings); |
|
|
|
var methodDecl = typeSystemAstBuilder.ConvertEntity(method); |
|
|
|
var methodDecl = typeSystemAstBuilder.ConvertEntity(method); |
|
|
|
int lastDot = method.Name.LastIndexOf('.'); |
|
|
|
int lastDot = method.Name.LastIndexOf('.'); |
|
|
@ -1467,6 +1470,12 @@ namespace ICSharpCode.Decompiler.CSharp |
|
|
|
} |
|
|
|
} |
|
|
|
return methodDecl; |
|
|
|
return methodDecl; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
finally |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
watch.Stop(); |
|
|
|
|
|
|
|
Instrumentation.DecompilerEventSource.Log.DoDecompileMethod(method.FullName, watch.ElapsedMilliseconds); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private bool IsCovariantReturnOverride(IEntity entity) |
|
|
|
private bool IsCovariantReturnOverride(IEntity entity) |
|
|
|
{ |
|
|
|
{ |
|
|
|