Comments (2)
This is by design. The following is legal/expected in C#:
public event Action a, b, c;
The declaring syntax reference points to the respective variabledeclarators for a
, b
, or c
to uniquely identify them.
from roslyn.
When I declare the event with the add/remove body, the syntax is a EventDeclarationSyntax:
Right, in this form, you can only have one event, so the entire declaration is returned.
This is the same with fields versus properties. Fields give you back the variable declarators. Properties give back the full declaration.
from roslyn.
Related Issues (20)
- Add ErrorCode to RuntimeRudeEdit HOT 2
- Missing nullability warning for spreads of maybe-null collections HOT 1
- Codegen for spreading a null array does not throw NullReferenceException HOT 9
- [Automated] PRs inserted in VS build main-35206.64
- Collection Expression Generated Types miss the [CompilerGenerated] attribute HOT 4
- Stack overflow when compiling incorrectly formed attribute argument string HOT 3
- Partial properties on struct warn about field ordering HOT 1
- [Automated] PRs inserted in VS build main-35207.120
- False positive IDE0001 when using extern alias
- The [InterceptsLocation] attribute generates a different "data" string for big-endian platforms HOT 7
- Synthesized collection types may result in empty unnecessary `<PrivateImplementationDetails>` class HOT 3
- Generator vs xaml generated files (the "*.g.i.cs") HOT 2
- [Automated] PRs inserted in VS build main-35208.78
- Default literals should not contribute their type from initial binding to best-type in nullable analysis
- CA1003 does not take the return value of an event handler into account
- Visual Studio did not auto fill complete after typing Property in VB.net HOT 4
- Fix formatting not using tabs HOT 2
- Refactor "Move type to file" should re-evaluate file header template
- Decompiled sources resolve wrong type.
- C# compiler integration with new System.Runtime.InteropServices.ExtendedLayoutAttribute
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roslyn.