-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Record-structs: Address some PROTOTYPE markers #52256
Changes from all commits
595d312
6ef4144
92a6a9c
8700ac6
1299dba
67e324a
aa89338
ac54980
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2253,7 +2253,6 @@ ITypeSymbol ITypeSymbolInternal.GetITypeSymbol() | |
return GetITypeSymbol(DefaultNullableAnnotation); | ||
} | ||
|
||
// PROTOTYPE(record-structs): rename to IsRecordClass? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 not planning to rename the internal API #Resolved |
||
internal abstract bool IsRecord { get; } | ||
|
||
internal abstract bool IsRecordStruct { get; } | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -795,7 +795,6 @@ public static SyntaxKind GetTypeDeclarationKind(SyntaxKind kind) | |
case SyntaxKind.InterfaceKeyword: | ||
return SyntaxKind.InterfaceDeclaration; | ||
case SyntaxKind.RecordKeyword: | ||
// PROTOTYPE(record-structs): anything we can do? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 I don't see anything we could do given the shape of the API. We'll see if that causes problems during IDE work #Resolved |
||
return SyntaxKind.RecordDeclaration; | ||
default: | ||
return SyntaxKind.None; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,6 @@ private static SyntaxKind GetTypeDeclarationKeywordKind(SyntaxKind kind) | |
return SyntaxKind.InterfaceKeyword; | ||
case SyntaxKind.RecordDeclaration: | ||
return SyntaxKind.RecordKeyword; | ||
// PROTOTYPE(record-structs): update for record structs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 We'll see if something is needed here during IDE work #Resolved |
||
default: | ||
throw ExceptionUtilities.UnexpectedValue(kind); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 I didn't manage to cover this
if
and couldn't find coverage for aboveif
either. #ResolvedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really? I acn easily hit code paths in the previous case by running existing test in src\Compilers\CSharp\Test\Semantic\Semantics\RecordTests.cs
In reply to: 604290986 [](ancestors = 604290986)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. You're right. Both
if
blocks are visited by theAnalyzerActions_XX
tests inRecordTests
andRecordStructTests
.In reply to: 605097075 [](ancestors = 605097075,604290986)