Bug 49 - Error in C# parser
Summary: Error in C# parser
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Mac OS
: --- minor
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-07-22 14:14 UTC by Mikayla Hutchinson [MSFT]
Modified: 2011-09-15 03:11 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Mikayla Hutchinson [MSFT] 2011-07-22 14:14:29 UTC
ERROR [2011-07-22 19:00:36Z]: System.NullReferenceException: Object reference not set to an instance of an object
  at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit (Mono.CSharp.NewAnonymousType newAnonymousType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.NewAnonymousType.Accept (Mono.CSharp.StructuralVisitor visitor) [0x00000] in <filename unknown>:0 
  at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit (Mono.CSharp.BlockVariableDeclaration blockVariableDeclaration) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.BlockVariableDeclaration.Accept (Mono.CSharp.StructuralVisitor visitor) [0x00000] in <filename unknown>:0 
  at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.AddBlockChildren (ICSharpCode.NRefactory.CSharp.BlockStatement result, Mono.CSharp.Block blockStatement, System.Int32& curLocal) [0x00000] in <filename unknown>:0 
  at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit (Mono.CSharp.Block blockStatement) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Block.Accept (Mono.CSharp.StructuralVisitor visitor) [0x00000] in <filename unknown>:0 
  at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit (Mono.CSharp.Constructor c) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Constructor.Accept (Mono.CSharp.StructuralVisitor visitor) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.StructuralVisitor.VisitTypeContainer (Mono.CSharp.TypeContainer tc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.StructuralVisitor.Visit (Mono.CSharp.Class c) [0x00000] in <filename unknown>:0 
  at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit (Mono.CSharp.Class c) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Class.Accept (Mono.CSharp.StructuralVisitor visitor) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.StructuralVisitor.VisitNamespaceBody (Mono.CSharp.Namespace nspace) [0x00000] in <filename unknown>:0 
  at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit (Mono.CSharp.Namespace nspace) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.UsingsBag+Namespace.Accept (Mono.CSharp.StructuralVisitor visitor) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.StructuralVisitor.VisitNamespaceBody (Mono.CSharp.Namespace nspace) [0x00000] in <filename unknown>:0 
  at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit (Mono.CSharp.Namespace nspace) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.UsingsBag+Namespace.Accept (Mono.CSharp.StructuralVisitor visitor) [0x00000] in <filename unknown>:0 
  at ICSharpCode.NRefactory.CSharp.CSharpParser.Parse (Mono.CSharp.CompilerCompilationUnit top, Int32 line) [0x00000] in <filename unknown>:0 
  at MonoDevelop.CSharp.Parser.McsParser.Parse (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, System.String fileName, System.String content) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.DoParseFile (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, System.String fileName, System.String fileContent) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.UpdateFile (MonoDevelop.Projects.Project[] projects, System.String fileName, System.Func`1 getContent) [0x00000] in <filename unknown>:0
Comment 1 Mike Krüger 2011-09-15 03:11:39 UTC
fixed. The case would've been interresting btw.