Skip to content
Browse files

Set compiler errors to parsed file.

  • Loading branch information...
1 parent b411a2a commit b74fe9381cb45e7643ebac4fc89ded4d1da139e6 @mkrueger mkrueger committed Jun 26, 2011
View
1 ICSharpCode.NRefactory/CSharp/Parser/ParsedFile.cs
@@ -57,6 +57,7 @@ public ParsedFile(string fileName, UsingScope rootUsingScope)
public IList<Error> Errors {
get { return errors; }
+ internal set { errors = (List<Error>)value; }
}
public IList<UsingScope> UsingScopes {
View
8 ICSharpCode.NRefactory/CSharp/Parser/TypeSystemConvertVisitor.cs
@@ -80,6 +80,14 @@ DomRegion MakeBraceRegion(AstNode node)
node.GetChildByRole(AstNode.Roles.RBrace).EndLocation);
}
+ #region Compilation Unit
+ public override IEntity VisitCompilationUnit (CompilationUnit unit, object data)
+ {
+ parsedFile.Errors = unit.Errors;
+ return base.VisitCompilationUnit (unit, data);
+ }
+ #endregion
+
#region Using Declarations
public override IEntity VisitExternAliasDeclaration(ExternAliasDeclaration externAliasDeclaration, object data)
{

0 comments on commit b74fe93

Please sign in to comment.
Something went wrong with that request. Please try again.