Visitar URL original
C#: Extract modifiers for lambdas (async, static) by tamasvajk · Pull Request #4615 · github/codeql · GitHub
The Wayback Machine - https://web.archive.org/web/20260603052803/https://github.com/github/codeql/pull/4615
Skip to content

C#: Extract modifiers for lambdas (async, static)#4615

Merged
tamasvajk merged 3 commits into
github:mainfrom
tamasvajk:feature/csharp9-lambda-modifiers
Nov 26, 2020
Merged

C#: Extract modifiers for lambdas (async, static)#4615
tamasvajk merged 3 commits into
github:mainfrom
tamasvajk:feature/csharp9-lambda-modifiers

Conversation

@tamasvajk
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the C# label Nov 5, 2020
@tamasvajk tamasvajk force-pushed the feature/csharp9-lambda-modifiers branch from 39027eb to 1fc8ed1 Compare November 18, 2020 10:26
@tamasvajk tamasvajk marked this pull request as ready for review November 18, 2020 10:26
@tamasvajk tamasvajk requested a review from a team as a code owner November 18, 2020 10:26
Copy link
Copy Markdown
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment, otherwise LGTM.

Comment on lines +31 to +32
Modifier.ExtractStaticModifier(cx, info.Context.TrapWriter.Writer, this, symbol);
Modifier.ExtractAsyncModifier(cx, info.Context.TrapWriter.Writer, this, symbol);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just call ExtractModifiers, in case new modifiers are allowed later.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed an extra commit to do this. (It does extract more modifiers (private) this way.)

@tamasvajk tamasvajk force-pushed the feature/csharp9-lambda-modifiers branch from 1fc8ed1 to b70c234 Compare November 25, 2020 13:59
hvitved
hvitved previously approved these changes Nov 25, 2020
@tamasvajk tamasvajk merged commit 27aeb53 into github:main Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants