提交 636e9aec 编写于 作者: A AdamSpeight2008

Fix for #17761. By adding the missing resource string for the Feature Interpolation Strings to VB.

上级 cad5ce03
......@@ -2017,5 +2017,6 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
FEATURE_Tuples
FEATURE_LeadingDigitSeparator
FEATURE_PrivateProtected
FEATURE_InterpolatedStrings
End Enum
End Namespace
......@@ -6165,14 +6165,7 @@ checkNullable:
Return node
End If
If feature = Feature.InterpolatedStrings Then
' Bug: It is too late in the release cycle to update localized strings. As a short term measure we will output
' an unlocalized string and fix this to be localized in the next release.
Dim requiredVersion = New VisualBasicRequiredLanguageVersion(feature.GetLanguageVersion())
Return ReportSyntaxError(node, ERRID.ERR_LanguageVersion, languageVersion.GetErrorName(), "interpolated strings", requiredVersion)
Else
Return ReportFeatureUnavailable(feature, node, languageVersion)
End If
Return ReportFeatureUnavailable(feature, node, languageVersion)
End Function
Private Shared Function ReportFeatureUnavailable(Of TNode As VisualBasicSyntaxNode)(feature As Feature, node As TNode, languageVersion As LanguageVersion) As TNode
......
......@@ -152,6 +152,8 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax
Return ERRID.FEATURE_LeadingDigitSeparator
Case Feature.PrivateProtected
Return ERRID.FEATURE_PrivateProtected
Case Feature.InterpolatedStrings
Return ERRID.FEATURE_InterpolatedStrings
Case Else
Throw ExceptionUtilities.UnexpectedValue(feature)
End Select
......
......@@ -12072,6 +12072,15 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
End Get
End Property
'''<summary>
''' Looks up a localized string similar to interpolated strings.
'''</summary>
Friend ReadOnly Property FEATURE_InterpolatedStrings() As String
Get
Return ResourceManager.GetString("FEATURE_InterpolatedStrings", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to iterators.
'''</summary>
......
......@@ -5530,4 +5530,7 @@
<data name="ICompoundAssignmentOperationIsNotVisualBasicCompoundAssignment" xml:space="preserve">
<value>{0} is not a valid Visual Basic compound assignment operation</value>
</data>
<data name="FEATURE_InterpolatedStrings" xml:space="preserve">
<value>interpolated strings</value>
</data>
</root>
\ No newline at end of file
......@@ -9081,6 +9081,11 @@
<target state="new">Invalid hash algorithm name: '{0}'</target>
<note />
</trans-unit>
<trans-unit id="FEATURE_InterpolatedStrings">
<source>interpolated strings</source>
<target state="new">interpolated strings</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -9081,6 +9081,11 @@
<target state="new">Invalid hash algorithm name: '{0}'</target>
<note />
</trans-unit>
<trans-unit id="FEATURE_InterpolatedStrings">
<source>interpolated strings</source>
<target state="new">interpolated strings</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -9081,6 +9081,11 @@
<target state="new">Invalid hash algorithm name: '{0}'</target>
<note />
</trans-unit>
<trans-unit id="FEATURE_InterpolatedStrings">
<source>interpolated strings</source>
<target state="new">interpolated strings</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -9081,6 +9081,11 @@
<target state="new">Invalid hash algorithm name: '{0}'</target>
<note />
</trans-unit>
<trans-unit id="FEATURE_InterpolatedStrings">
<source>interpolated strings</source>
<target state="new">interpolated strings</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -9081,6 +9081,11 @@
<target state="new">Invalid hash algorithm name: '{0}'</target>
<note />
</trans-unit>
<trans-unit id="FEATURE_InterpolatedStrings">
<source>interpolated strings</source>
<target state="new">interpolated strings</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -9081,6 +9081,11 @@
<target state="new">Invalid hash algorithm name: '{0}'</target>
<note />
</trans-unit>
<trans-unit id="FEATURE_InterpolatedStrings">
<source>interpolated strings</source>
<target state="new">interpolated strings</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -9081,6 +9081,11 @@
<target state="new">Invalid hash algorithm name: '{0}'</target>
<note />
</trans-unit>
<trans-unit id="FEATURE_InterpolatedStrings">
<source>interpolated strings</source>
<target state="new">interpolated strings</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -9081,6 +9081,11 @@
<target state="new">Invalid hash algorithm name: '{0}'</target>
<note />
</trans-unit>
<trans-unit id="FEATURE_InterpolatedStrings">
<source>interpolated strings</source>
<target state="new">interpolated strings</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -9081,6 +9081,11 @@
<target state="new">Invalid hash algorithm name: '{0}'</target>
<note />
</trans-unit>
<trans-unit id="FEATURE_InterpolatedStrings">
<source>interpolated strings</source>
<target state="new">interpolated strings</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -9081,6 +9081,11 @@
<target state="new">Invalid hash algorithm name: '{0}'</target>
<note />
</trans-unit>
<trans-unit id="FEATURE_InterpolatedStrings">
<source>interpolated strings</source>
<target state="new">interpolated strings</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -9081,6 +9081,11 @@
<target state="new">Invalid hash algorithm name: '{0}'</target>
<note />
</trans-unit>
<trans-unit id="FEATURE_InterpolatedStrings">
<source>interpolated strings</source>
<target state="new">interpolated strings</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -9081,6 +9081,11 @@
<target state="new">Invalid hash algorithm name: '{0}'</target>
<note />
</trans-unit>
<trans-unit id="FEATURE_InterpolatedStrings">
<source>interpolated strings</source>
<target state="new">interpolated strings</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -9081,6 +9081,11 @@
<target state="new">Invalid hash algorithm name: '{0}'</target>
<note />
</trans-unit>
<trans-unit id="FEATURE_InterpolatedStrings">
<source>interpolated strings</source>
<target state="new">interpolated strings</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册