Version Used:
typeof(SyntaxFactory).Assembly.ImageRuntimeVersion = v4.0.30319
Steps to Reproduce:
in c# interactive:
- #r "Microsoft.CodeAnalysis.CSharp.dll"
- using Microsoft.CodeAnalysis.CSharp;
- SyntaxFactory.ParseAttributeArgumentList("somethingWithoutBrackets")
- Then this exception is being thrown:
Object reference not set to an instance of an object.
- Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.SyntaxParser.AddError(TNode, Microsoft.CodeAnalysis.CSharp.ErrorCode, object[])
- Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.LanguageParser.ConsumeUnexpectedTokens(TNode)
- Microsoft.CodeAnalysis.CSharp.SyntaxFactory.ParseAttributeArgumentList(string, int, Microsoft.CodeAnalysis.ParseOptions, bool)
Expected Behavior:
some kind of ParseException, e.g. UnexpectedTokenException
Actual Behavior:
NullReferenceException with stacktrace.