Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
aca81966
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
aca81966
编写于
4月 30, 2015
作者:
R
Ravi Chande
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Don't recommend type keywords in cref type args
Fixes #1468.
上级
3f37d97b
变更
30
隐藏空白更改
内联
并排
Showing
30 changed file
with
208 addition
and
15 deletion
+208
-15
src/EditorFeatures/CSharpTest/Recommendations/BoolKeywordRecommenderTests.cs
...CSharpTest/Recommendations/BoolKeywordRecommenderTests.cs
+11
-0
src/EditorFeatures/CSharpTest/Recommendations/ByteKeywordRecommenderTests.cs
...CSharpTest/Recommendations/ByteKeywordRecommenderTests.cs
+11
-0
src/EditorFeatures/CSharpTest/Recommendations/CharKeywordRecommenderTests.cs
...CSharpTest/Recommendations/CharKeywordRecommenderTests.cs
+11
-0
src/EditorFeatures/CSharpTest/Recommendations/DecimalKeywordRecommenderTests.cs
...arpTest/Recommendations/DecimalKeywordRecommenderTests.cs
+11
-0
src/EditorFeatures/CSharpTest/Recommendations/DoubleKeywordRecommenderTests.cs
...harpTest/Recommendations/DoubleKeywordRecommenderTests.cs
+11
-0
src/EditorFeatures/CSharpTest/Recommendations/FloatKeywordRecommenderTests.cs
...SharpTest/Recommendations/FloatKeywordRecommenderTests.cs
+11
-0
src/EditorFeatures/CSharpTest/Recommendations/IntKeywordRecommenderTests.cs
.../CSharpTest/Recommendations/IntKeywordRecommenderTests.cs
+11
-0
src/EditorFeatures/CSharpTest/Recommendations/LongKeywordRecommenderTests.cs
...CSharpTest/Recommendations/LongKeywordRecommenderTests.cs
+11
-0
src/EditorFeatures/CSharpTest/Recommendations/ObjectKeywordRecommenderTests.cs
...harpTest/Recommendations/ObjectKeywordRecommenderTests.cs
+11
-0
src/EditorFeatures/CSharpTest/Recommendations/SByteKeywordRecommenderTests.cs
...SharpTest/Recommendations/SByteKeywordRecommenderTests.cs
+11
-0
src/EditorFeatures/CSharpTest/Recommendations/ShortKeywordRecommenderTests.cs
...SharpTest/Recommendations/ShortKeywordRecommenderTests.cs
+11
-0
src/EditorFeatures/CSharpTest/Recommendations/StringKeywordRecommenderTests.cs
...harpTest/Recommendations/StringKeywordRecommenderTests.cs
+11
-0
src/EditorFeatures/CSharpTest/Recommendations/UIntKeywordRecommenderTests.cs
...CSharpTest/Recommendations/UIntKeywordRecommenderTests.cs
+11
-0
src/EditorFeatures/CSharpTest/Recommendations/ULongKeywordRecommenderTests.cs
...SharpTest/Recommendations/ULongKeywordRecommenderTests.cs
+11
-0
src/EditorFeatures/CSharpTest/Recommendations/UShortKeywordRecommenderTests.cs
...harpTest/Recommendations/UShortKeywordRecommenderTests.cs
+11
-0
src/Features/CSharp/Completion/KeywordRecommenders/BoolKeywordRecommender.cs
.../Completion/KeywordRecommenders/BoolKeywordRecommender.cs
+3
-1
src/Features/CSharp/Completion/KeywordRecommenders/ByteKeywordRecommender.cs
.../Completion/KeywordRecommenders/ByteKeywordRecommender.cs
+3
-1
src/Features/CSharp/Completion/KeywordRecommenders/CharKeywordRecommender.cs
.../Completion/KeywordRecommenders/CharKeywordRecommender.cs
+3
-1
src/Features/CSharp/Completion/KeywordRecommenders/DecimalKeywordRecommender.cs
...mpletion/KeywordRecommenders/DecimalKeywordRecommender.cs
+3
-1
src/Features/CSharp/Completion/KeywordRecommenders/DoubleKeywordRecommender.cs
...ompletion/KeywordRecommenders/DoubleKeywordRecommender.cs
+3
-1
src/Features/CSharp/Completion/KeywordRecommenders/FloatKeywordRecommender.cs
...Completion/KeywordRecommenders/FloatKeywordRecommender.cs
+3
-1
src/Features/CSharp/Completion/KeywordRecommenders/IntKeywordRecommender.cs
...p/Completion/KeywordRecommenders/IntKeywordRecommender.cs
+3
-1
src/Features/CSharp/Completion/KeywordRecommenders/LongKeywordRecommender.cs
.../Completion/KeywordRecommenders/LongKeywordRecommender.cs
+3
-1
src/Features/CSharp/Completion/KeywordRecommenders/ObjectKeywordRecommender.cs
...ompletion/KeywordRecommenders/ObjectKeywordRecommender.cs
+1
-1
src/Features/CSharp/Completion/KeywordRecommenders/SByteKeywordRecommender.cs
...Completion/KeywordRecommenders/SByteKeywordRecommender.cs
+3
-1
src/Features/CSharp/Completion/KeywordRecommenders/ShortKeywordRecommender.cs
...Completion/KeywordRecommenders/ShortKeywordRecommender.cs
+3
-1
src/Features/CSharp/Completion/KeywordRecommenders/StringKeywordRecommender.cs
...ompletion/KeywordRecommenders/StringKeywordRecommender.cs
+3
-1
src/Features/CSharp/Completion/KeywordRecommenders/UIntKeywordRecommender.cs
.../Completion/KeywordRecommenders/UIntKeywordRecommender.cs
+3
-1
src/Features/CSharp/Completion/KeywordRecommenders/ULongKeywordRecommender.cs
...Completion/KeywordRecommenders/ULongKeywordRecommender.cs
+3
-1
src/Features/CSharp/Completion/KeywordRecommenders/UShortKeywordRecommender.cs
...ompletion/KeywordRecommenders/UShortKeywordRecommender.cs
+3
-1
未找到文件。
src/EditorFeatures/CSharpTest/Recommendations/BoolKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -600,5 +600,16 @@ public void NotAfterAsyncAsType()
{
VerifyAbsence
(
@"class c { async async $$ }"
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/EditorFeatures/CSharpTest/Recommendations/ByteKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -600,5 +600,16 @@ public void NotAfterAsyncAsType()
{
VerifyAbsence
(
@"class c { async async $$ }"
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/EditorFeatures/CSharpTest/Recommendations/CharKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -652,5 +652,16 @@ static void Main(string[] args)
"
;
VerifyKeyword
(
markup
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/EditorFeatures/CSharpTest/Recommendations/DecimalKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -601,5 +601,16 @@ public void NotAfterAsyncAsType()
{
VerifyAbsence
(
@"class c { async async $$ }"
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/EditorFeatures/CSharpTest/Recommendations/DoubleKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -600,5 +600,16 @@ public void NotAfterAsyncAsType()
{
VerifyAbsence
(
@"class c { async async $$ }"
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/EditorFeatures/CSharpTest/Recommendations/FloatKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -573,5 +573,16 @@ public void NotAfterAsyncAsType()
{
VerifyAbsence
(
@"class c { async async $$ }"
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/EditorFeatures/CSharpTest/Recommendations/IntKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -669,5 +669,16 @@ public void NotAfterAsyncAsType()
{
VerifyAbsence
(
@"class c { async async $$ }"
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/EditorFeatures/CSharpTest/Recommendations/LongKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -600,5 +600,16 @@ public void NotAfterAsyncAsType()
{
VerifyAbsence
(
@"class c { async async $$ }"
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/EditorFeatures/CSharpTest/Recommendations/ObjectKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -607,5 +607,16 @@ public void NotAfterAsyncAsType()
{
VerifyAbsence
(
@"class c { async async $$ }"
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/EditorFeatures/CSharpTest/Recommendations/SByteKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -600,5 +600,16 @@ public void NotAfterAsyncAsType()
{
VerifyAbsence
(
@"class c { async async $$ }"
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/EditorFeatures/CSharpTest/Recommendations/ShortKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -593,5 +593,16 @@ public void NotAfterAsyncAsType()
{
VerifyAbsence
(
@"class c { async async $$ }"
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/EditorFeatures/CSharpTest/Recommendations/StringKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -649,5 +649,16 @@ public void NotAfterAsyncAsType()
{
VerifyAbsence
(
@"class c { async async $$ }"
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/EditorFeatures/CSharpTest/Recommendations/UIntKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -600,5 +600,16 @@ public void NotAfterAsyncAsType()
{
VerifyAbsence
(
@"class c { async async $$ }"
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/EditorFeatures/CSharpTest/Recommendations/ULongKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -600,5 +600,16 @@ public void NotAfterAsyncAsType()
{
VerifyAbsence
(
@"class c { async async $$ }"
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/EditorFeatures/CSharpTest/Recommendations/UShortKeywordRecommenderTests.cs
浏览文件 @
aca81966
...
...
@@ -600,5 +600,16 @@ public void NotAfterAsyncAsType()
{
VerifyAbsence
(
@"class c { async async $$ }"
);
}
[
WorkItem
(
1468
,
"https://github.com/dotnet/roslyn/issues/1468"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
KeywordRecommending
)]
public
void
NotInCrefTypeParameter
()
{
VerifyAbsence
(
@"
using System;
/// <see cref=""List{$$}"" />
class C { }
"
);
}
}
}
src/Features/CSharp/Completion/KeywordRecommenders/BoolKeywordRecommender.cs
浏览文件 @
aca81966
...
...
@@ -3,7 +3,9 @@
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.CSharp.Utilities
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
namespace
Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
...
...
@@ -23,7 +25,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
context
.
IsFixedVariableDeclarationContext
||
...
...
src/Features/CSharp/Completion/KeywordRecommenders/ByteKeywordRecommender.cs
浏览文件 @
aca81966
...
...
@@ -3,7 +3,9 @@
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.CSharp.Utilities
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
namespace
Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
...
...
@@ -24,7 +26,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsEnumBaseListContext
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
...
...
src/Features/CSharp/Completion/KeywordRecommenders/CharKeywordRecommender.cs
浏览文件 @
aca81966
...
...
@@ -3,7 +3,9 @@
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.CSharp.Utilities
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
namespace
Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
...
...
@@ -23,7 +25,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
context
.
IsFixedVariableDeclarationContext
||
...
...
src/Features/CSharp/Completion/KeywordRecommenders/DecimalKeywordRecommender.cs
浏览文件 @
aca81966
...
...
@@ -3,7 +3,9 @@
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.CSharp.Utilities
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
namespace
Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
...
...
@@ -23,7 +25,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
context
.
IsFixedVariableDeclarationContext
||
...
...
src/Features/CSharp/Completion/KeywordRecommenders/DoubleKeywordRecommender.cs
浏览文件 @
aca81966
...
...
@@ -3,7 +3,9 @@
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.CSharp.Utilities
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
namespace
Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
...
...
@@ -23,7 +25,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
context
.
IsFixedVariableDeclarationContext
||
...
...
src/Features/CSharp/Completion/KeywordRecommenders/FloatKeywordRecommender.cs
浏览文件 @
aca81966
...
...
@@ -3,7 +3,9 @@
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.CSharp.Utilities
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
namespace
Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
...
...
@@ -23,7 +25,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
context
.
IsFixedVariableDeclarationContext
||
...
...
src/Features/CSharp/Completion/KeywordRecommenders/IntKeywordRecommender.cs
浏览文件 @
aca81966
...
...
@@ -3,7 +3,9 @@
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.CSharp.Utilities
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
namespace
Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
...
...
@@ -23,7 +25,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsEnumBaseListContext
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
...
...
src/Features/CSharp/Completion/KeywordRecommenders/LongKeywordRecommender.cs
浏览文件 @
aca81966
...
...
@@ -3,7 +3,9 @@
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.CSharp.Utilities
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
namespace
Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
...
...
@@ -23,7 +25,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsEnumBaseListContext
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
...
...
src/Features/CSharp/Completion/KeywordRecommenders/ObjectKeywordRecommender.cs
浏览文件 @
aca81966
...
...
@@ -23,7 +23,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
context
.
IsParameterTypeContext
||
...
...
src/Features/CSharp/Completion/KeywordRecommenders/SByteKeywordRecommender.cs
浏览文件 @
aca81966
...
...
@@ -3,7 +3,9 @@
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.CSharp.Utilities
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
namespace
Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
...
...
@@ -23,7 +25,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsEnumBaseListContext
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
...
...
src/Features/CSharp/Completion/KeywordRecommenders/ShortKeywordRecommender.cs
浏览文件 @
aca81966
...
...
@@ -3,7 +3,9 @@
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.CSharp.Utilities
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
namespace
Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
...
...
@@ -23,7 +25,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsEnumBaseListContext
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
...
...
src/Features/CSharp/Completion/KeywordRecommenders/StringKeywordRecommender.cs
浏览文件 @
aca81966
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.Utilities
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
namespace
Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
...
...
@@ -23,7 +25,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
context
.
IsParameterTypeContext
||
...
...
src/Features/CSharp/Completion/KeywordRecommenders/UIntKeywordRecommender.cs
浏览文件 @
aca81966
...
...
@@ -3,7 +3,9 @@
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.CSharp.Utilities
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
namespace
Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
...
...
@@ -23,7 +25,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsEnumBaseListContext
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
...
...
src/Features/CSharp/Completion/KeywordRecommenders/ULongKeywordRecommender.cs
浏览文件 @
aca81966
...
...
@@ -3,7 +3,9 @@
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.CSharp.Utilities
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
namespace
Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
...
...
@@ -23,7 +25,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsEnumBaseListContext
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
...
...
src/Features/CSharp/Completion/KeywordRecommenders/UShortKeywordRecommender.cs
浏览文件 @
aca81966
...
...
@@ -3,7 +3,9 @@
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.CSharp.Utilities
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
namespace
Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
...
...
@@ -23,7 +25,7 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
context
.
IsStatementContext
||
context
.
IsGlobalStatementContext
||
context
.
IsObjectCreationTypeContext
||
context
.
IsGenericTypeArgumentContext
||
(
context
.
IsGenericTypeArgumentContext
&&
!
context
.
TargetToken
.
Parent
.
HasAncestor
<
XmlCrefAttributeSyntax
>())
||
context
.
IsEnumBaseListContext
||
context
.
IsIsOrAsTypeContext
||
context
.
IsLocalVariableDeclarationContext
||
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录