From 7622629ea7117ce5e85aab11190ed61efafc7836 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Fri, 9 Mar 2012 22:25:23 +0100 Subject: [PATCH] Add properties to CSharpAstResolver. --- .../Resolver/CSharpAstResolver.cs | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/Libraries/NRefactory/ICSharpCode.NRefactory.CSharp/Resolver/CSharpAstResolver.cs b/src/Libraries/NRefactory/ICSharpCode.NRefactory.CSharp/Resolver/CSharpAstResolver.cs index 43f4931a78..fcc31d9e9f 100644 --- a/src/Libraries/NRefactory/ICSharpCode.NRefactory.CSharp/Resolver/CSharpAstResolver.cs +++ b/src/Libraries/NRefactory/ICSharpCode.NRefactory.CSharp/Resolver/CSharpAstResolver.cs @@ -87,6 +87,28 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver get { return initialResolverState.CurrentTypeResolveContext; } } + /// + /// Gets the compilation for this resolver. + /// + public ICompilation Compilation { + get { return initialResolverState.Compilation; } + } + + /// + /// Gets the root node for which this CSharpAstResolver was created. + /// + public AstNode RootNode { + get { return rootNode; } + } + + /// + /// Gets the parsed file used by this CSharpAstResolver. + /// Can return null. + /// + public CSharpParsedFile ParsedFile { + get { return parsedFile; } + } + /// /// Applies a resolver navigator. This will resolve the nodes requested by the navigator, and will inform the /// navigator of the results.