|
|
|
@ -340,10 +340,17 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
@@ -340,10 +340,17 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
|
|
|
|
|
var navigator = new NodeListResolveVisitorNavigator (new[] { resolveNode }); |
|
|
|
|
var visitor = new ResolveVisitor (csResolver, file, navigator); |
|
|
|
|
visitor.Scan (unit); |
|
|
|
|
// Print (unit);
|
|
|
|
|
var state = visitor.GetResolverStateBefore (resolveNode); |
|
|
|
|
var result = visitor.GetResolveResult (resolveNode); |
|
|
|
|
return Tuple.Create (result, state); |
|
|
|
|
} |
|
|
|
|
static void Print (AstNode node) |
|
|
|
|
{ |
|
|
|
|
var v = new CSharpOutputVisitor (Console.Out, new CSharpFormattingOptions ()); |
|
|
|
|
node.AcceptVisitor (v, null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
} |
|
|
|
|
} |