You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Language Feature Status.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ efforts behind them.
20
20
|[Function pointers](https://github.com/dotnet/csharplang/issues/191)|[function-pointers](https://github.com/dotnet/roslyn/tree/features/function-pointers)|[Merged into 16.7p3](https://github.com/dotnet/roslyn/issues/43321)|[333fred](https://github.com/333fred)|[AlekseyTs](https://github.com/AlekseyTs)|[jaredpar](https://github.com/jaredpar)|
21
21
|[Pattern matching improvements](https://github.com/dotnet/csharplang/issues/2850)| master |[Merged into 16.7p1](https://github.com/dotnet/roslyn/issues/40727)|[gafter](https://github.com/gafter)|[RikkiGibson](https://github.com/RikkiGibson),[agocke](https://github.com/agocke)|[gafter](https://github.com/gafter)|
|[Records](https://github.com/dotnet/csharplang/issues/39)|[features/records](https://github.com/dotnet/roslyn/tree/features/records)|[Merged into 16.7p3](https://github.com/dotnet/roslyn/issues/40726)|[agocke](https://github.com/agocke)|[gafter](https://github.com/gafter), [333fred](https://github.com/333fred)|[agocke](https://github.com/agocke)|
|[Default in deconstruction](https://github.com/dotnet/roslyn/pull/25562)|[decon-default](https://github.com/dotnet/roslyn/tree/features/decon-default)|[Implemented](https://github.com/dotnet/roslyn/issues/25559)|[jcouv](https://github.com/jcouv)|[gafter](https://github.com/gafter)|[jcouv](https://github.com/jcouv)|
38
+
|[Constant Interpolated Strings](https://github.com/dotnet/csharplang/issues/2951)|[features/interpolated-string-constants](https://github.com/dotnet/roslyn/tree/features/interpolated-string-constants)| In Progress |[kevinsun-dev](https://github.com/kevinsun-dev)|[333fred](https://github.com/333fred)|[jaredar](https://github.com/jaredpar), [agocke](https://github.com/agocke)|
Copy file name to clipboardExpand all lines: docs/compilers/CSharp/Compiler Breaking Changes - VS2019.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,3 +117,4 @@ Each entry should include a short description of the break, followed by either a
117
117
}
118
118
}
119
119
```
120
+
12. https://github.com/dotnet/roslyn/issues/32732 Switch statements that handle both a `true` case and a `false` case are now considered to handle all of the possible input values.
Copy file name to clipboardExpand all lines: docs/features/source-generators.cookbook.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -456,7 +456,7 @@ public class MyGenerator : ISourceGenerator
456
456
- As a generator author I want to make decisions based on the values contained in the project file
457
457
- As a user of a generator I want to be able to customize the generated code and override defaults.
458
458
459
-
**Solution:** MSBuild will automatically translate specified properties and metadata into a global analyzer config that can be read by a generator. A generator author specifies the properties and metadata they want to make available by adding items to the `CompilerVisibleProperty` and `CompilerVisibleMetadata` item groups. These can be added via a props or targets file when packaging the generator as a NuGet package.
459
+
**Solution:** MSBuild will automatically translate specified properties and metadata into a global analyzer config that can be read by a generator. A generator author specifies the properties and metadata they want to make available by adding items to the `CompilerVisibleProperty` and `CompilerVisibleItemMetadata` item groups. These can be added via a props or targets file when packaging the generator as a NuGet package.
460
460
461
461
For example, consider a generator that creates source based on additional files, and wants to allow a user to enable or disable logging via the project file. The author would specify in their props file that they want to make the specified MSBuild property visible to the compiler:
A user can thus enable, or disable logging, by setting a property in their project file.
476
476
477
-
Now, consider that the generator author wants to optionally allow opting in/out of logging on a per-additional file basis. The author can request that MSBuild emit the value of metadata for the specified file, by adding to the `CompilerVisibleMetadata` item group. The author specifies both the MSBuild itemType they want to read the metadata from, in this case `AdditionalFiles`, and the name of the metadata that they want to retrieve for them.
477
+
Now, consider that the generator author wants to optionally allow opting in/out of logging on a per-additional file basis. The author can request that MSBuild emit the value of metadata for the specified file, by adding to the `CompilerVisibleItemMetadata` item group. The author specifies both the MSBuild itemType they want to read the metadata from, in this case `AdditionalFiles`, and the name of the metadata that they want to retrieve for them.
0 commit comments