Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
wpf
提交
ad2c2211
W
wpf
项目概览
dotNET Platform
/
wpf
11 个月 前同步成功
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
wpf
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
ad2c2211
编写于
9月 29, 2021
作者:
A
Ashish Kumar Singh
提交者:
GitHub
9月 29, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4800 from ThomasGoulet73/analyzers-update
Update FxCop analyzers
上级
55bce960
61976785
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
30 addition
and
23 deletion
+30
-23
eng/WpfArcadeSdk/tools/CodeAnalysis.targets
eng/WpfArcadeSdk/tools/CodeAnalysis.targets
+1
-2
src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Xaml/Parser/SpecialBracketCharacters.cs
...hared/MS/Internal/Xaml/Parser/SpecialBracketCharacters.cs
+1
-1
src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Markup/RuntimeIdentifierPropertyAttribute.cs
...stem/Windows/Markup/RuntimeIdentifierPropertyAttribute.cs
+1
-1
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/UidPropertyAttribute.cs
...System.Xaml/System/Windows/Markup/UidPropertyAttribute.cs
+1
-1
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/ValueSerializer.cs
.../src/System.Xaml/System/Windows/Markup/ValueSerializer.cs
+3
-0
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ObjectWriterContext.cs
...rc/System.Xaml/System/Xaml/Context/ObjectWriterContext.cs
+1
-1
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/MS/Impl/XmlNsInfo.cs
...tNet.Wpf/src/System.Xaml/System/Xaml/MS/Impl/XmlNsInfo.cs
+4
-4
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/NamespacePrefixLookup.cs
...c/System.Xaml/System/Xaml/Parser/NamespacePrefixLookup.cs
+1
-1
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/NodeStreamSorter.cs
...pf/src/System.Xaml/System/Xaml/Parser/NodeStreamSorter.cs
+1
-1
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlName.cs
...DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlName.cs
+1
-1
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlPullParser.cs
....Wpf/src/System.Xaml/System/Xaml/Parser/XamlPullParser.cs
+3
-3
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScanner.cs
...Net.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScanner.cs
+2
-2
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Primitives/XamlBackgroundReader.cs
...ystem.Xaml/System/Xaml/Primitives/XamlBackgroundReader.cs
+2
-2
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Primitives/XamlNodeList.cs
...pf/src/System.Xaml/System/Xaml/Primitives/XamlNodeList.cs
+1
-1
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/TypeReflector.cs
...t.Wpf/src/System.Xaml/System/Xaml/Schema/TypeReflector.cs
+1
-0
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlObjectReader.cs
...otNet.Wpf/src/System.Xaml/System/Xaml/XamlObjectReader.cs
+1
-1
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlSchemaContext.cs
...tNet.Wpf/src/System.Xaml/System/Xaml/XamlSchemaContext.cs
+4
-1
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlServices.cs
...ft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlServices.cs
+1
-0
未找到文件。
eng/WpfArcadeSdk/tools/CodeAnalysis.targets
浏览文件 @
ad2c2211
...
...
@@ -6,8 +6,7 @@
<ItemGroup Condition="'$(IsTestProject)'!='true' AND '$(EnableAnalyzers)'=='true'">
<!-- Managed Code Reference analyzers -->
<PackageReference Include="Microsoft.DotNet.CodeAnalysis" Version="$(MicrosoftDotNetCodeAnalysisPackageVersion)" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="2.9.0" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.1" />
<PackageReference Include="System.Runtime.Analyzers" Version="1.1.0" />
<PackageReference Include="System.Runtime.InteropServices.Analyzers" Version="1.1.0" />
</ItemGroup>
...
...
src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Xaml/Parser/SpecialBracketCharacters.cs
浏览文件 @
ad2c2211
...
...
@@ -106,7 +106,7 @@ internal bool EndsEscapeSequence(char ch)
internal
bool
Match
(
char
start
,
char
end
)
{
return
_endChars
.
IndexOf
(
end
.
ToString
()
)
==
_startChars
.
IndexOf
(
start
.
ToString
()
);
return
_endChars
.
IndexOf
(
end
.
ToString
()
,
StringComparison
.
Ordinal
)
==
_startChars
.
IndexOf
(
start
.
ToString
(),
StringComparison
.
Ordinal
);
}
internal
string
StartBracketCharacters
...
...
src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Markup/RuntimeIdentifierPropertyAttribute.cs
浏览文件 @
ad2c2211
...
...
@@ -48,7 +48,7 @@ public string Name
}
}
private
string
_name
=
null
;
private
string
_name
;
}
#endif
...
...
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/UidPropertyAttribute.cs
浏览文件 @
ad2c2211
...
...
@@ -54,6 +54,6 @@ public string Name
}
// The name of the property that is designated to accept the x:Uid value
private
string
_name
=
null
;
private
string
_name
;
}
}
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/ValueSerializer.cs
浏览文件 @
ad2c2211
...
...
@@ -244,6 +244,9 @@ public static ValueSerializer GetSerializerFor(PropertyDescriptor descriptor, IV
/// </summary>
protected
Exception
GetConvertToException
(
object
value
,
Type
destinationType
)
{
if
(
destinationType
==
null
)
throw
new
ArgumentNullException
(
nameof
(
destinationType
));
string
text
;
if
(
value
==
null
)
{
...
...
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ObjectWriterContext.cs
浏览文件 @
ad2c2211
...
...
@@ -17,7 +17,7 @@ internal class ObjectWriterContext : XamlContext
{
private
XamlContextStack
<
ObjectWriterFrame
>
_stack
;
private
object
_rootInstance
=
null
;
private
object
_rootInstance
;
ServiceProviderContext
_serviceProviderContext
;
XamlRuntime
_runtime
;
...
...
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/MS/Impl/XmlNsInfo.cs
浏览文件 @
ad2c2211
...
...
@@ -38,7 +38,7 @@ internal IList<XmlNsDefinition> NsDefs
}
// Note this, is the only dictionary that we synchronize, because XamlSchemaContext adds to it
private
ConcurrentDictionary
<
string
,
IList
<
string
>>
_clrToXmlNs
=
null
;
private
ConcurrentDictionary
<
string
,
IList
<
string
>>
_clrToXmlNs
;
internal
ConcurrentDictionary
<
string
,
IList
<
string
>>
ClrToXmlNs
{
get
...
...
@@ -64,7 +64,7 @@ internal ICollection<AssemblyName> InternalsVisibleTo
}
}
private
Dictionary
<
string
,
string
>
_oldToNewNs
=
null
;
private
Dictionary
<
string
,
string
>
_oldToNewNs
;
internal
Dictionary
<
string
,
string
>
OldToNewNs
{
get
...
...
@@ -77,7 +77,7 @@ internal ICollection<AssemblyName> InternalsVisibleTo
}
}
private
Dictionary
<
string
,
string
>
_prefixes
=
null
;
private
Dictionary
<
string
,
string
>
_prefixes
;
internal
Dictionary
<
string
,
string
>
Prefixes
{
get
...
...
@@ -90,7 +90,7 @@ internal ICollection<AssemblyName> InternalsVisibleTo
}
}
private
string
_rootNamespace
=
null
;
private
string
_rootNamespace
;
internal
string
RootNamespace
{
get
...
...
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/NamespacePrefixLookup.cs
浏览文件 @
ad2c2211
...
...
@@ -20,7 +20,7 @@ public NamespacePrefixLookup(out IEnumerable<NamespaceDeclaration> newNamespaces
#
region
INamespacePrefixLookup
Members
private
int
n
=
0
;
private
int
n
;
public
string
LookupPrefix
(
string
ns
)
{
// we really shouldn't generate extraneous new namespaces
...
...
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/NodeStreamSorter.cs
浏览文件 @
ad2c2211
...
...
@@ -33,7 +33,7 @@ class SeenCtorDirectiveFlags
}
List
<
SeenCtorDirectiveFlags
>
_seenStack
=
new
List
<
SeenCtorDirectiveFlags
>();
int
_startObjectDepth
=
0
;
int
_startObjectDepth
;
List
<
int
>
_moveList
;
...
...
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlName.cs
浏览文件 @
ad2c2211
...
...
@@ -30,7 +30,7 @@ public XamlName(string prefix, string name)
public
abstract
string
ScopedName
{
get
;
}
protected
string
_prefix
;
protected
string
_namespace
=
null
;
protected
string
_namespace
;
public
string
Prefix
{
get
{
return
_prefix
;
}
}
public
string
Namespace
{
get
{
return
_namespace
;
}
}
...
...
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlPullParser.cs
浏览文件 @
ad2c2211
...
...
@@ -931,7 +931,7 @@ private XamlNode Logic_StartItemsProperty(XamlType collectionType)
#
region
Optimizations
private
readonly
XamlTypeName
arrayType
=
new
XamlTypeName
(
@"http://schemas.microsoft.com/winfx/2006/xaml"
,
"Array"
);
private
XamlType
_arrayExtensionType
=
null
;
private
XamlType
_arrayExtensionType
;
private
XamlType
ArrayExtensionType
{
get
...
...
@@ -944,7 +944,7 @@ private XamlType ArrayExtensionType
}
}
private
XamlMember
_arrayTypeMember
=
null
;
private
XamlMember
_arrayTypeMember
;
private
XamlMember
ArrayTypeMember
{
get
...
...
@@ -957,7 +957,7 @@ private XamlMember ArrayTypeMember
}
}
private
XamlMember
_itemsTypeMember
=
null
;
private
XamlMember
_itemsTypeMember
;
private
XamlMember
ItemsTypeMember
{
get
...
...
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScanner.cs
浏览文件 @
ad2c2211
...
...
@@ -29,14 +29,14 @@ class XamlScanner
XamlScannerStack
_scannerStack
;
XamlParserContext
_parserContext
;
XamlText
_accumulatedText
=
null
;
XamlText
_accumulatedText
;
List
<
XamlAttribute
>
_attributes
;
int
_nextAttribute
;
XamlScannerNode
_currentNode
;
Queue
<
XamlScannerNode
>
_readNodesQueue
;
XamlXmlReaderSettings
_settings
;
XamlAttribute
_typeArgumentAttribute
;
bool
_hasKeyAttribute
=
false
;
bool
_hasKeyAttribute
;
internal
XamlScanner
(
XamlParserContext
context
,
XmlReader
xmlReader
,
XamlXmlReaderSettings
settings
)
{
...
...
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Primitives/XamlBackgroundReader.cs
浏览文件 @
ad2c2211
...
...
@@ -29,8 +29,8 @@ public class XamlBackgroundReader : XamlReader, IXamlLineInfo
XamlWriter
_writer
;
bool
_wrappedReaderHasLineInfo
;
int
_lineNumber
=
0
;
int
_linePosition
=
0
;
int
_lineNumber
;
int
_linePosition
;
Thread
_thread
;
Exception
_caughtException
;
...
...
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Primitives/XamlNodeList.cs
浏览文件 @
ad2c2211
...
...
@@ -16,7 +16,7 @@ namespace System.Xaml
public
class
XamlNodeList
{
List
<
XamlNode
>
_nodeList
;
bool
_readMode
=
false
;
bool
_readMode
;
XamlWriter
_writer
;
bool
_hasLineInfo
;
...
...
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/TypeReflector.cs
浏览文件 @
ad2c2211
...
...
@@ -13,6 +13,7 @@
namespace
System.Xaml.Schema
{
[
Diagnostics
.
CodeAnalysis
.
SuppressMessage
(
"Reliability"
,
"CA2002:Do not lock on objects with weak identity"
,
Justification
=
"This type is internal."
)]
class
TypeReflector
:
Reflector
{
private
const
XamlCollectionKind
XamlCollectionKindInvalid
=
(
XamlCollectionKind
)
byte
.
MaxValue
;
...
...
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlObjectReader.cs
浏览文件 @
ad2c2211
...
...
@@ -994,7 +994,7 @@ abstract class ObjectOrValueMarkupInfo : MarkupInfo
class
ObjectMarkupInfo
:
ObjectOrValueMarkupInfo
{
List
<
MarkupInfo
>
properties
=
new
List
<
MarkupInfo
>();
bool
?
isAttributableMarkupExtension
=
null
;
bool
?
isAttributableMarkupExtension
;
public
List
<
MarkupInfo
>
Properties
{
get
{
return
properties
;
}
}
public
string
Name
{
get
;
set
;
}
...
...
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlSchemaContext.cs
浏览文件 @
ad2c2211
...
...
@@ -542,6 +542,9 @@ private string GetCompatibleNamespace(string oldNs)
public
virtual
XamlType
GetXamlType
(
Type
type
)
{
if
(
type
==
null
)
throw
new
ArgumentNullException
(
nameof
(
type
));
return
GetXamlType
(
type
,
XamlLanguage
.
TypeAlias
(
type
));
}
...
...
@@ -683,7 +686,7 @@ internal virtual XamlMember GetAttachableEvent(string name, MethodInfo adder)
#
region
Settings
// Unchanging, initialized in ctor
private
readonly
XamlSchemaContextSettings
_settings
=
null
;
private
readonly
XamlSchemaContextSettings
_settings
;
public
bool
SupportMarkupExtensionsWithDuplicateArity
{
...
...
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlServices.cs
浏览文件 @
ad2c2211
...
...
@@ -8,6 +8,7 @@
namespace
System.Xaml
{
[
Diagnostics
.
CodeAnalysis
.
SuppressMessage
(
"Reliability"
,
"CA2000:Dispose objects before losing scope"
,
Justification
=
"The IDisposable types in this class don't require dispose."
)]
public
static
class
XamlServices
{
// The main function is Load(XamlReader)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录