Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
fd6070d7
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,发现更多精彩内容 >>
提交
fd6070d7
编写于
2月 08, 2020
作者:
C
Cyrus Najmabadi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move more into SyntaxKinds
上级
3dbc8fdb
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
10 addition
and
5 deletion
+10
-5
src/Workspaces/CSharp/Portable/LanguageServices/CSharpSyntaxFactsService.cs
...arp/Portable/LanguageServices/CSharpSyntaxFactsService.cs
+0
-3
src/Workspaces/CSharp/Portable/LanguageServices/CSharpSyntaxKindsService.cs
...arp/Portable/LanguageServices/CSharpSyntaxKindsService.cs
+1
-0
src/Workspaces/Core/Portable/LanguageServices/SyntaxFactsService/AbstractSyntaxFactsService.cs
...Services/SyntaxFactsService/AbstractSyntaxFactsService.cs
+3
-0
src/Workspaces/Core/Portable/LanguageServices/SyntaxFactsService/ISyntaxKindsService.cs
...anguageServices/SyntaxFactsService/ISyntaxKindsService.cs
+3
-0
src/Workspaces/VisualBasic/Portable/LanguageServices/VisualBasicSyntaxFactsService.vb
...ortable/LanguageServices/VisualBasicSyntaxFactsService.vb
+2
-2
src/Workspaces/VisualBasic/Portable/LanguageServices/VisualBasicSyntaxKindsService.vb
...ortable/LanguageServices/VisualBasicSyntaxKindsService.vb
+1
-0
未找到文件。
src/Workspaces/CSharp/Portable/LanguageServices/CSharpSyntaxFactsService.cs
浏览文件 @
fd6070d7
...
@@ -180,9 +180,6 @@ public SyntaxNode GetDefaultOfParameter(SyntaxNode node)
...
@@ -180,9 +180,6 @@ public SyntaxNode GetDefaultOfParameter(SyntaxNode node)
public
SyntaxNode
GetParameterList
(
SyntaxNode
node
)
public
SyntaxNode
GetParameterList
(
SyntaxNode
node
)
=>
CSharpSyntaxGenerator
.
GetParameterList
(
node
);
=>
CSharpSyntaxGenerator
.
GetParameterList
(
node
);
public
bool
IsSkippedTokensTrivia
(
SyntaxNode
node
)
=>
node
is
SkippedTokensTriviaSyntax
;
public
SyntaxToken
GetIdentifierOfGenericName
(
SyntaxNode
genericName
)
public
SyntaxToken
GetIdentifierOfGenericName
(
SyntaxNode
genericName
)
{
{
return
genericName
is
GenericNameSyntax
csharpGenericName
return
genericName
is
GenericNameSyntax
csharpGenericName
...
...
src/Workspaces/CSharp/Portable/LanguageServices/CSharpSyntaxKindsService.cs
浏览文件 @
fd6070d7
...
@@ -23,6 +23,7 @@ public override TSyntaxKind Convert<TSyntaxKind>(int kind)
...
@@ -23,6 +23,7 @@ public override TSyntaxKind Convert<TSyntaxKind>(int kind)
public
override
int
ConflictMarkerTrivia
=>
(
int
)
SyntaxKind
.
ConflictMarkerTrivia
;
public
override
int
ConflictMarkerTrivia
=>
(
int
)
SyntaxKind
.
ConflictMarkerTrivia
;
public
override
int
DisabledTextTrivia
=>
(
int
)
SyntaxKind
.
DisabledTextTrivia
;
public
override
int
DisabledTextTrivia
=>
(
int
)
SyntaxKind
.
DisabledTextTrivia
;
public
override
int
EndOfLineTrivia
=>
(
int
)
SyntaxKind
.
EndOfLineTrivia
;
public
override
int
EndOfLineTrivia
=>
(
int
)
SyntaxKind
.
EndOfLineTrivia
;
public
override
int
SkippedTokensTrivia
=>
(
int
)
SyntaxKind
.
SkippedTokensTrivia
;
public
override
int
DotToken
=>
(
int
)
SyntaxKind
.
DotToken
;
public
override
int
DotToken
=>
(
int
)
SyntaxKind
.
DotToken
;
public
override
int
QuestionToken
=>
(
int
)
SyntaxKind
.
QuestionToken
;
public
override
int
QuestionToken
=>
(
int
)
SyntaxKind
.
QuestionToken
;
...
...
src/Workspaces/Core/Portable/LanguageServices/SyntaxFactsService/AbstractSyntaxFactsService.cs
浏览文件 @
fd6070d7
...
@@ -606,6 +606,9 @@ public bool HasIncompleteParentMember(SyntaxNode node)
...
@@ -606,6 +606,9 @@ public bool HasIncompleteParentMember(SyntaxNode node)
#
nullable
enable
#
nullable
enable
public
bool
IsSkippedTokensTrivia
([
NotNullWhen
(
true
)]
SyntaxNode
?
node
)
=>
node
?.
RawKind
==
SyntaxKinds
.
SkippedTokensTrivia
;
public
bool
IsGenericName
([
NotNullWhen
(
true
)]
SyntaxNode
?
node
)
public
bool
IsGenericName
([
NotNullWhen
(
true
)]
SyntaxNode
?
node
)
=>
node
?.
RawKind
==
SyntaxKinds
.
GenericName
;
=>
node
?.
RawKind
==
SyntaxKinds
.
GenericName
;
...
...
src/Workspaces/Core/Portable/LanguageServices/SyntaxFactsService/ISyntaxKindsService.cs
浏览文件 @
fd6070d7
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
#
nullable
enable
#
nullable
enable
using
System.Runtime.CompilerServices
;
using
Microsoft.CodeAnalysis.Host
;
using
Microsoft.CodeAnalysis.Host
;
namespace
Microsoft.CodeAnalysis.LanguageServices
namespace
Microsoft.CodeAnalysis.LanguageServices
...
@@ -19,6 +20,7 @@ internal interface ISyntaxKindsService : ILanguageService
...
@@ -19,6 +20,7 @@ internal interface ISyntaxKindsService : ILanguageService
int
ConflictMarkerTrivia
{
get
;
}
int
ConflictMarkerTrivia
{
get
;
}
int
DisabledTextTrivia
{
get
;
}
int
DisabledTextTrivia
{
get
;
}
int
EndOfLineTrivia
{
get
;
}
int
EndOfLineTrivia
{
get
;
}
int
SkippedTokensTrivia
{
get
;
}
int
DotToken
{
get
;
}
int
DotToken
{
get
;
}
int
QuestionToken
{
get
;
}
int
QuestionToken
{
get
;
}
...
@@ -67,6 +69,7 @@ internal abstract class AbstractSyntaxKindsService : ISyntaxKindsService
...
@@ -67,6 +69,7 @@ internal abstract class AbstractSyntaxKindsService : ISyntaxKindsService
public
abstract
int
ConflictMarkerTrivia
{
get
;
}
public
abstract
int
ConflictMarkerTrivia
{
get
;
}
public
abstract
int
DisabledTextTrivia
{
get
;
}
public
abstract
int
DisabledTextTrivia
{
get
;
}
public
abstract
int
EndOfLineTrivia
{
get
;
}
public
abstract
int
EndOfLineTrivia
{
get
;
}
public
abstract
int
SkippedTokensTrivia
{
get
;
}
public
abstract
int
DotToken
{
get
;
}
public
abstract
int
DotToken
{
get
;
}
public
abstract
int
QuestionToken
{
get
;
}
public
abstract
int
QuestionToken
{
get
;
}
...
...
src/Workspaces/VisualBasic/Portable/LanguageServices/VisualBasicSyntaxFactsService.vb
浏览文件 @
fd6070d7
...
@@ -226,8 +226,8 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
...
@@ -226,8 +226,8 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Return
VisualBasicSyntaxGenerator
.
GetParameterList
(
node
)
Return
VisualBasicSyntaxGenerator
.
GetParameterList
(
node
)
End
Function
End
Function
P
ublic
Function
IsSkippedTokensTrivia
(
node
As
SyntaxNode
)
As
Boolean
Implements
ISyntaxFactsService
.
IsSkippedTokensTrivia
P
rivate
Function
ISyntaxFacts_
IsSkippedTokensTrivia
(
node
As
SyntaxNode
)
As
Boolean
Implements
ISyntaxFactsService
.
IsSkippedTokensTrivia
Return
TypeOf
node
Is
SkippedTokensTriviaSyntax
Return
IsSkippedTokensTrivia
(
node
)
End
Function
End
Function
Public
Function
ISyntaxFactsService_HasIncompleteParentMember
(
node
As
SyntaxNode
)
As
Boolean
Implements
ISyntaxFactsService
.
HasIncompleteParentMember
Public
Function
ISyntaxFactsService_HasIncompleteParentMember
(
node
As
SyntaxNode
)
As
Boolean
Implements
ISyntaxFactsService
.
HasIncompleteParentMember
...
...
src/Workspaces/VisualBasic/Portable/LanguageServices/VisualBasicSyntaxKindsService.vb
浏览文件 @
fd6070d7
...
@@ -21,6 +21,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.LanguageServices
...
@@ -21,6 +21,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.LanguageServices
Public
Overrides
ReadOnly
Property
ConflictMarkerTrivia
As
Integer
=
SyntaxKind
.
ConflictMarkerTrivia
Public
Overrides
ReadOnly
Property
ConflictMarkerTrivia
As
Integer
=
SyntaxKind
.
ConflictMarkerTrivia
Public
Overrides
ReadOnly
Property
DisabledTextTrivia
As
Integer
=
SyntaxKind
.
DisabledTextTrivia
Public
Overrides
ReadOnly
Property
DisabledTextTrivia
As
Integer
=
SyntaxKind
.
DisabledTextTrivia
Public
Overrides
ReadOnly
Property
EndOfLineTrivia
As
Integer
=
SyntaxKind
.
EndOfLineTrivia
Public
Overrides
ReadOnly
Property
EndOfLineTrivia
As
Integer
=
SyntaxKind
.
EndOfLineTrivia
Public
Overrides
ReadOnly
Property
SkippedTokensTrivia
As
Integer
=
SyntaxKind
.
SkippedTokensTrivia
Public
Overrides
ReadOnly
Property
DotToken
As
Integer
=
SyntaxKind
.
DotToken
Public
Overrides
ReadOnly
Property
DotToken
As
Integer
=
SyntaxKind
.
DotToken
Public
Overrides
ReadOnly
Property
QuestionToken
As
Integer
=
SyntaxKind
.
QuestionToken
Public
Overrides
ReadOnly
Property
QuestionToken
As
Integer
=
SyntaxKind
.
QuestionToken
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录