diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-12-02 14:09:36 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-12-02 14:09:36 +0400 |
commit | 5fbb8ebf78f8b5bb9962e600af2c3e2ac027bfaa (patch) | |
tree | c48e1f795c68d2d4de169748a70503d4754532b5 /main/contrib | |
parent | 9f9cdee250d3a8e7e9b66488586c48011fa506ce (diff) |
[Stetic] Track nrefactory api changes.
Diffstat (limited to 'main/contrib')
-rw-r--r-- | main/contrib/ICSharpCode.NRefactory.CSharp/TypeSystem/CSharpParsedFile.cs | 4 | ||||
-rw-r--r-- | main/contrib/ICSharpCode.NRefactory/TypeSystem/IParsedFile.cs | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/main/contrib/ICSharpCode.NRefactory.CSharp/TypeSystem/CSharpParsedFile.cs b/main/contrib/ICSharpCode.NRefactory.CSharp/TypeSystem/CSharpParsedFile.cs index bdea11257d..0b85420884 100644 --- a/main/contrib/ICSharpCode.NRefactory.CSharp/TypeSystem/CSharpParsedFile.cs +++ b/main/contrib/ICSharpCode.NRefactory.CSharp/TypeSystem/CSharpParsedFile.cs @@ -106,7 +106,7 @@ namespace ICSharpCode.NRefactory.CSharp.TypeSystem return rootUsingScope; } - public CSharpTypeResolveContext GetTypeResolveContext (ICompilation compilation, TextLocation loc) + public ITypeResolveContext GetTypeResolveContext (ICompilation compilation, TextLocation loc) { var rctx = new CSharpTypeResolveContext (compilation.MainAssembly); rctx = rctx.WithUsingScope (GetUsingScope (loc).Resolve (compilation)); @@ -127,7 +127,7 @@ namespace ICSharpCode.NRefactory.CSharp.TypeSystem public ICSharpCode.NRefactory.CSharp.Resolver.CSharpResolver GetResolver (ICompilation compilation, TextLocation loc) { - return new ICSharpCode.NRefactory.CSharp.Resolver.CSharpResolver (GetTypeResolveContext (compilation, loc)); + return new ICSharpCode.NRefactory.CSharp.Resolver.CSharpResolver (GetTypeResolveContext (compilation, loc) as CSharpTypeResolveContext); } public IUnresolvedTypeDefinition GetTopLevelTypeDefinition(TextLocation location) diff --git a/main/contrib/ICSharpCode.NRefactory/TypeSystem/IParsedFile.cs b/main/contrib/ICSharpCode.NRefactory/TypeSystem/IParsedFile.cs index cfa08505d9..9647c09408 100644 --- a/main/contrib/ICSharpCode.NRefactory/TypeSystem/IParsedFile.cs +++ b/main/contrib/ICSharpCode.NRefactory/TypeSystem/IParsedFile.cs @@ -73,5 +73,7 @@ namespace ICSharpCode.NRefactory.TypeSystem /// Gets the parser errors. /// </summary> IList<Error> Errors { get; } + + ITypeResolveContext GetTypeResolveContext (ICompilation compilation, TextLocation loc); } } |