Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
runtime
提交
469db3d7
R
runtime
项目概览
dotNET Platform
/
runtime
12 个月 前同步成功
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
runtime
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
469db3d7
编写于
6月 14, 2021
作者:
J
Jeff Layton
提交者:
GitHub
6月 14, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Logging Generator: messaging fix (#54080)
上级
342e4cd6
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
29 addition
and
28 deletion
+29
-28
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/LoggerMessageGenerator.Parser.cs
...Logging.Abstractions/gen/LoggerMessageGenerator.Parser.cs
+1
-1
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/Strings.resx
...xtensions.Logging.Abstractions/gen/Resources/Strings.resx
+1
-1
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.cs.xlf
...ons.Logging.Abstractions/gen/Resources/xlf/Strings.cs.xlf
+2
-2
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.de.xlf
...ons.Logging.Abstractions/gen/Resources/xlf/Strings.de.xlf
+2
-2
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.es.xlf
...ons.Logging.Abstractions/gen/Resources/xlf/Strings.es.xlf
+2
-2
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.fr.xlf
...ons.Logging.Abstractions/gen/Resources/xlf/Strings.fr.xlf
+2
-2
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.it.xlf
...ons.Logging.Abstractions/gen/Resources/xlf/Strings.it.xlf
+2
-2
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ja.xlf
...ons.Logging.Abstractions/gen/Resources/xlf/Strings.ja.xlf
+2
-2
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ko.xlf
...ons.Logging.Abstractions/gen/Resources/xlf/Strings.ko.xlf
+2
-2
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.pl.xlf
...ons.Logging.Abstractions/gen/Resources/xlf/Strings.pl.xlf
+2
-2
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.pt-BR.xlf
....Logging.Abstractions/gen/Resources/xlf/Strings.pt-BR.xlf
+2
-2
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ru.xlf
...ons.Logging.Abstractions/gen/Resources/xlf/Strings.ru.xlf
+2
-2
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.tr.xlf
...ons.Logging.Abstractions/gen/Resources/xlf/Strings.tr.xlf
+2
-2
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.zh-Hans.xlf
...ogging.Abstractions/gen/Resources/xlf/Strings.zh-Hans.xlf
+2
-2
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.zh-Hant.xlf
...ogging.Abstractions/gen/Resources/xlf/Strings.zh-Hant.xlf
+2
-2
src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorParserTests.cs
...ing.Generators.Tests/LoggerMessageGeneratorParserTests.cs
+1
-0
未找到文件。
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/LoggerMessageGenerator.Parser.cs
浏览文件 @
469db3d7
...
...
@@ -323,7 +323,7 @@ public IReadOnlyList<LoggerClass> GetLogClasses(IEnumerable<ClassDeclarationSynt
if
(!
found
)
{
Diag
(
DiagnosticDescriptors
.
TemplateHasNoCorrespondingArgument
,
ma
.
GetLocation
(),
t
);
Diag
(
DiagnosticDescriptors
.
TemplateHasNoCorrespondingArgument
,
ma
.
GetLocation
(),
t
.
Key
);
}
}
}
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/Strings.resx
浏览文件 @
469db3d7
...
...
@@ -177,7 +177,7 @@
<value>
Argument is not referenced from the logging message
</value>
</data>
<data
name=
"TemplateHasNoCorrespondingArgumentMessage"
xml:space=
"preserve"
>
<value>
Template
{0}
is not provided as argument to the logging method
</value>
<value>
Template
'{0}'
is not provided as argument to the logging method
</value>
</data>
<data
name=
"TemplateHasNoCorrespondingArgumentTitle"
xml:space=
"preserve"
>
<value>
Logging template has no corresponding method argument
</value>
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.cs.xlf
浏览文件 @
469db3d7
...
...
@@ -153,8 +153,8 @@
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentMessage"
>
<source>
Template
{0}
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
{0}
is not provided as argument to the logging method
</target>
<source>
Template
'{0}'
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
'{0}'
is not provided as argument to the logging method
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentTitle"
>
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.de.xlf
浏览文件 @
469db3d7
...
...
@@ -153,8 +153,8 @@
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentMessage"
>
<source>
Template
{0}
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
{0}
is not provided as argument to the logging method
</target>
<source>
Template
'{0}'
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
'{0}'
is not provided as argument to the logging method
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentTitle"
>
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.es.xlf
浏览文件 @
469db3d7
...
...
@@ -153,8 +153,8 @@
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentMessage"
>
<source>
Template
{0}
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
{0}
is not provided as argument to the logging method
</target>
<source>
Template
'{0}'
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
'{0}'
is not provided as argument to the logging method
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentTitle"
>
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.fr.xlf
浏览文件 @
469db3d7
...
...
@@ -153,8 +153,8 @@
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentMessage"
>
<source>
Template
{0}
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
{0}
is not provided as argument to the logging method
</target>
<source>
Template
'{0}'
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
'{0}'
is not provided as argument to the logging method
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentTitle"
>
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.it.xlf
浏览文件 @
469db3d7
...
...
@@ -153,8 +153,8 @@
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentMessage"
>
<source>
Template
{0}
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
{0}
is not provided as argument to the logging method
</target>
<source>
Template
'{0}'
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
'{0}'
is not provided as argument to the logging method
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentTitle"
>
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ja.xlf
浏览文件 @
469db3d7
...
...
@@ -153,8 +153,8 @@
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentMessage"
>
<source>
Template
{0}
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
{0}
is not provided as argument to the logging method
</target>
<source>
Template
'{0}'
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
'{0}'
is not provided as argument to the logging method
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentTitle"
>
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ko.xlf
浏览文件 @
469db3d7
...
...
@@ -153,8 +153,8 @@
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentMessage"
>
<source>
Template
{0}
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
{0}
is not provided as argument to the logging method
</target>
<source>
Template
'{0}'
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
'{0}'
is not provided as argument to the logging method
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentTitle"
>
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.pl.xlf
浏览文件 @
469db3d7
...
...
@@ -153,8 +153,8 @@
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentMessage"
>
<source>
Template
{0}
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
{0}
is not provided as argument to the logging method
</target>
<source>
Template
'{0}'
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
'{0}'
is not provided as argument to the logging method
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentTitle"
>
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.pt-BR.xlf
浏览文件 @
469db3d7
...
...
@@ -153,8 +153,8 @@
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentMessage"
>
<source>
Template
{0}
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
{0}
is not provided as argument to the logging method
</target>
<source>
Template
'{0}'
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
'{0}'
is not provided as argument to the logging method
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentTitle"
>
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ru.xlf
浏览文件 @
469db3d7
...
...
@@ -153,8 +153,8 @@
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentMessage"
>
<source>
Template
{0}
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
{0}
is not provided as argument to the logging method
</target>
<source>
Template
'{0}'
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
'{0}'
is not provided as argument to the logging method
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentTitle"
>
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.tr.xlf
浏览文件 @
469db3d7
...
...
@@ -153,8 +153,8 @@
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentMessage"
>
<source>
Template
{0}
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
{0}
is not provided as argument to the logging method
</target>
<source>
Template
'{0}'
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
'{0}'
is not provided as argument to the logging method
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentTitle"
>
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.zh-Hans.xlf
浏览文件 @
469db3d7
...
...
@@ -153,8 +153,8 @@
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentMessage"
>
<source>
Template
{0}
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
{0}
is not provided as argument to the logging method
</target>
<source>
Template
'{0}'
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
'{0}'
is not provided as argument to the logging method
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentTitle"
>
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.zh-Hant.xlf
浏览文件 @
469db3d7
...
...
@@ -153,8 +153,8 @@
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentMessage"
>
<source>
Template
{0}
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
{0}
is not provided as argument to the logging method
</target>
<source>
Template
'{0}'
is not provided as argument to the logging method
</source>
<target
state=
"new"
>
Template
'{0}'
is not provided as argument to the logging method
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"TemplateHasNoCorrespondingArgumentTitle"
>
...
...
src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorParserTests.cs
浏览文件 @
469db3d7
...
...
@@ -93,6 +93,7 @@ partial class C
Assert
.
Single
(
diagnostics
);
Assert
.
Equal
(
DiagnosticDescriptors
.
TemplateHasNoCorrespondingArgument
.
Id
,
diagnostics
[
0
].
Id
);
Assert
.
Contains
(
"Template 'foo' is not provided as argument to the logging method"
,
diagnostics
[
0
].
GetMessage
(),
StringComparison
.
InvariantCulture
);
}
[
Fact
]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录