Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C# Target] Instantiate argument exceptions correctly #4763

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runtime/CSharp/src/Atn/Transition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected internal Transition(ATNState target)
{
if (target == null)
{
throw new ArgumentNullException("target cannot be null.");
throw new ArgumentNullException(nameof(target), "target cannot be null.");
}
this.target = target;
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/CSharp/src/BufferedTokenStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public BufferedTokenStream(ITokenSource tokenSource)
{
if (tokenSource == null)
{
throw new ArgumentNullException("tokenSource cannot be null");
throw new ArgumentNullException(nameof(tokenSource), "tokenSource cannot be null");
}
this._tokenSource = tokenSource;
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/CSharp/src/ListTokenSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public ListTokenSource(IList<IToken> tokens, string sourceName)
{
if (tokens == null)
{
throw new ArgumentNullException("tokens cannot be null");
throw new ArgumentNullException(nameof(tokens), "tokens cannot be null");
}
this.tokens = tokens;
this.sourceName = sourceName;
Expand Down
Loading