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
Remove ILiteralExpression.Text #21426
Remove ILiteralExpression.Text #21426
Conversation
object value; | ||
if (operation.ConstantValue.HasValue && ((value = operation.ConstantValue.Value) == null ? "null" : value.ToString()) == operation.Text) | ||
{ | ||
LogString($" (Text: {operation.Text})"); |
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.
To make the change easier, you coudl just write out operation.Syntax.ToString here.
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 already fixed it everywhere, and I'd prefer not to have a synthetic property getting printed.
…-literal-text * dotnet/features/ioperation: Fix NamedArgumentInParameterOrderWithDefaultValue test for new IOperation output. EnC and EE cleanup (dotnet#21226) Fix crash when encountering a parenthesized expression when converting an if to a switch. this makes OOM to crash OOP process. this won't crash VS, instead it will show info bar and notify users to close VS and re-open. Turn on ref assemblies in all projects (dotnet#21346) Re-baseline some emit tests Move MakeFrames logic into Analysis Use langver=latest for scripting (dotnet#21331) Enable skipped tests and fix them (dotnet#21335) Replace project reference with linked file removed left out from deleted esent code.
@dotnet-bot retest windows_determinism_prtest please |
Ping @dotnet/roslyn-compiler @AlekseyTs can I get a couple of reviews please? |
…-literal-text * dotnet/features/ioperation: Recommend 'case' keyword after a pattern-case-clause. Trim the length of the banner that we show for outlining down a bit. Disallow converting overrides of system.object methods. Use 'default' over 'default(T)' (dotnet#21387) Fix issue where Metadata as source wasn't properly handling Xml doc files with LF newlines. Warn if user replaces a method that overrides a metadata method with a property. Fix tests on cs-CZ culture (dotnet#21171) Correct comment about parameterized property If an exception is null, log accordingly Delete workaround for a long-fixed editor bug Typo
LGTM |
Ping @dotnet/roslyn-compiler for a second review please. |
/// <summary> | ||
/// Textual representation of the literal. | ||
/// </summary> | ||
string Text { get; } |
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.
What's the point in having an interface with no members? In general I'm suspicious of marker interfaces.
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 mean, it's not empty. It has all the standard members of IOperation. Text was basically just providing a shortcut on literalExpression.Syntax.ToString()
, which we don't feel worth having.
…-literal-text * dotnet/features/ioperation: Update CSharpReplaceMethodWithPropertyService.cs Add VB side of fix. Remove unneeded function. Improve trivia preservation when converting methods into a property. VB side of do-not-simplify-nameof if it changes semantics. Do not simplify to an alias in a nameof if it changes the value of hte nameof. Include System.Runtime.Serialization.Primitives and System.Security.Cryptography.Csp in PortableFacades CoreXT package. (dotnet#21438) Address one more refactoring feedback Address PR feedback Fix possible race conditions in TestExtensionErrorHandler Fix expected test results to properly consider trivia Improve messages when tests fail due to expected text Default to considering trivia during testing Remove RemoveUnneededReferences from LamdaRewriter (dotnet#21367) Enable embedding sources to Windows PDBs (dotnet#21391) re-enabled assert we have disabled Do not insert Microsoft.DiaSymReader.Native (dotnet#21420) Resolving merge conflict Don't pick a project arbitrarily when navigating to symbols
Ping @AlekseyTs @jaredpar @dotnet/roslyn-compiler for a couple of reviews please. |
…-literal-text * dotnet/features/ioperation: (77 commits) Refactor variable names. Rename parameters. renamed methods. Rename method. Move integration test machines to 15.3 RTM (dotnet#21535) Update comment Fixed unintentional capitalization change, corrected grammar. Do a better job with leading trivia on types when moving types to a new file. Fixed unintentional capitalization change. Remove Release subdir from template output path (dotnet#21482) Fix bug in 'this' optimization for classes (dotnet#21510) Add test. Improve find-refs behavior when the user invokes it with a symbol selected. Fix regression in VB attribute classification. Fixed unintentional capitalization change. fix merge issues OSS sign debugger binaries. (dotnet#21468) More test fixes. Fixed misgenerated tests. Use default tuple fields in conversion since fields from inferred names are marked not usable in C#7 ...
@dotnet-bot retest ubuntu_14_debug_prtest please |
Ping for reviews. |
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.
LGTM
…-literal-text * dotnet/features/ioperation: Fix no completion in partially written code before 'await'. parameter refness update in local functions/lambda should be caught a… (dotnet#21573) Don't offer to use pattern matching if a user defined operator was involved. Fix crash in VisualBasic.Binder.MemberLookup.AddLookupSymbolsInfoInTypeParameter when it is called with Cref TypeParameter. (dotnet#21586) Additional refactors. Refactor IConditionalChoiceExpression. use PerformIO utility put dispose under finally. Update to Microsoft.DiaSymReader.PortablePdb, Microsoft.DiaSymReader.Converter.Xml to 1.4.0-beta1-62016-01 (dotnet#21557) removed usage of ImmutableArray in json.net Update PULL_REQUEST_TEMPLATE.md Add test documentation to the PR template Remove LocalFunctionRewriting pass (dotnet#21408) PR feedbacks 3 product changes and 1 test change
Fixes #21300.