Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
0d63ed38
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,发现更多精彩内容 >>
未验证
提交
0d63ed38
编写于
2月 28, 2020
作者:
M
msftbot[bot]
提交者:
GitHub
2月 28, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #42019 from mavasani/SyntaxKindsService
Move ISyntaxKindsService language service in shared layer
上级
3c801953
8e413ea3
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
110 addition
and
107 deletion
+110
-107
src/Features/CSharp/Portable/ConflictMarkerResolution/CSharpResolveConflictMarkerCodeFixProvider.cs
...rResolution/CSharpResolveConflictMarkerCodeFixProvider.cs
+1
-2
src/Features/CSharp/Portable/ConvertAnonymousTypeToTuple/CSharpConvertAnonymousTypeToTupleDiagnosticAnalyzer.cs
...le/CSharpConvertAnonymousTypeToTupleDiagnosticAnalyzer.cs
+1
-2
src/Features/Core/Portable/ConflictMarkerResolution/AbstractConflictMarkerCodeFixProvider.cs
...MarkerResolution/AbstractConflictMarkerCodeFixProvider.cs
+2
-2
src/Features/Core/Portable/ConvertAnonymousTypeToTuple/AbstractConvertAnonymousTypeToTupleDiagnosticAnalyzer.cs
.../AbstractConvertAnonymousTypeToTupleDiagnosticAnalyzer.cs
+2
-2
src/Features/VisualBasic/Portable/ConflictMarkerResolution/VisualBasicResolveConflictMarkerCodeFixProvider.vb
...lution/VisualBasicResolveConflictMarkerCodeFixProvider.vb
+1
-2
src/Features/VisualBasic/Portable/ConvertAnonymousTypeToTuple/VisualBasicConvertAnonymousTypeToTupleDiagnosticAnalyzer.vb
...sualBasicConvertAnonymousTypeToTupleDiagnosticAnalyzer.vb
+1
-2
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/CSharpCompilerExtensions.projitems
...nsions/Compiler/CSharp/CSharpCompilerExtensions.projitems
+1
-1
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/Services/SyntaxFacts/CSharpSyntaxKinds.cs
...Compiler/CSharp/Services/SyntaxFacts/CSharpSyntaxKinds.cs
+4
-6
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/CompilerExtensions.projitems
...sAndExtensions/Compiler/Core/CompilerExtensions.projitems
+1
-1
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Services/SyntaxFacts/ISyntaxKinds.cs
...nsions/Compiler/Core/Services/SyntaxFacts/ISyntaxKinds.cs
+2
-2
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/VisualBasic/Services/SyntaxFacts/VisualBasicSyntaxKinds.vb
...isualBasic/Services/SyntaxFacts/VisualBasicSyntaxKinds.vb
+72
-74
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/VisualBasic/VisualBasicCompilerExtensions.projitems
...piler/VisualBasic/VisualBasicCompilerExtensions.projitems
+1
-1
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/CSharp/CSharpWorkspaceExtensions.projitems
...ions/Workspace/CSharp/CSharpWorkspaceExtensions.projitems
+1
-0
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/CSharp/LanguageServices/CSharpSyntaxFactsService.cs
...space/CSharp/LanguageServices/CSharpSyntaxFactsService.cs
+1
-2
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/CSharp/LanguageServices/CSharpSyntaxKindsServiceFactory.cs
...Sharp/LanguageServices/CSharpSyntaxKindsServiceFactory.cs
+5
-1
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/LanguageServices/SyntaxFactsService/AbstractSyntaxFactsService.cs
...Services/SyntaxFactsService/AbstractSyntaxFactsService.cs
+1
-1
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/LanguageServices/SyntaxFactsService/ISyntaxFactsService.cs
...anguageServices/SyntaxFactsService/ISyntaxFactsService.cs
+1
-1
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/LanguageServices/SyntaxFactsService/ISyntaxKindsService.cs
...anguageServices/SyntaxFactsService/ISyntaxKindsService.cs
+1
-1
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/WorkspaceExtensions.projitems
...ndExtensions/Workspace/Core/WorkspaceExtensions.projitems
+1
-0
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/VisualBasic/LanguageServices/VisualBasicSyntaxFactsService.vb
...alBasic/LanguageServices/VisualBasicSyntaxFactsService.vb
+1
-2
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/VisualBasic/LanguageServices/VisualBasicSyntaxKindsServiceFactory.vb
.../LanguageServices/VisualBasicSyntaxKindsServiceFactory.vb
+7
-1
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/VisualBasic/VisualBasicWorkspaceExtensions.projitems
...pace/VisualBasic/VisualBasicWorkspaceExtensions.projitems
+1
-0
src/Workspaces/VisualBasic/Portable/Microsoft.CodeAnalysis.VisualBasic.Workspaces.vbproj
...able/Microsoft.CodeAnalysis.VisualBasic.Workspaces.vbproj
+1
-1
未找到文件。
src/Features/CSharp/Portable/ConflictMarkerResolution/CSharpResolveConflictMarkerCodeFixProvider.cs
浏览文件 @
0d63ed38
...
...
@@ -7,7 +7,6 @@
using
System.Composition
;
using
Microsoft.CodeAnalysis.CodeFixes
;
using
Microsoft.CodeAnalysis.ConflictMarkerResolution
;
using
Microsoft.CodeAnalysis.CSharp.LanguageServices
;
namespace
Microsoft.CodeAnalysis.CSharp.ConflictMarkerResolution
{
...
...
@@ -18,7 +17,7 @@ internal class CSharpResolveConflictMarkerCodeFixProvider : AbstractResolveConfl
[
ImportingConstructor
]
public
CSharpResolveConflictMarkerCodeFixProvider
()
:
base
(
CSharpSyntaxKinds
Service
.
Instance
,
CS8300
)
:
base
(
CSharpSyntaxKinds
.
Instance
,
CS8300
)
{
}
}
...
...
src/Features/CSharp/Portable/ConvertAnonymousTypeToTuple/CSharpConvertAnonymousTypeToTupleDiagnosticAnalyzer.cs
浏览文件 @
0d63ed38
...
...
@@ -5,7 +5,6 @@
#
nullable
enable
using
Microsoft.CodeAnalysis.ConvertAnonymousTypeToTuple
;
using
Microsoft.CodeAnalysis.CSharp.LanguageServices
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.Diagnostics
;
...
...
@@ -18,7 +17,7 @@ internal class CSharpConvertAnonymousTypeToTupleDiagnosticAnalyzer
AnonymousObjectCreationExpressionSyntax
>
{
public
CSharpConvertAnonymousTypeToTupleDiagnosticAnalyzer
()
:
base
(
CSharpSyntaxKinds
Service
.
Instance
)
:
base
(
CSharpSyntaxKinds
.
Instance
)
{
}
...
...
src/Features/Core/Portable/ConflictMarkerResolution/AbstractConflictMarkerCodeFixProvider.cs
浏览文件 @
0d63ed38
...
...
@@ -20,10 +20,10 @@ internal abstract class AbstractResolveConflictMarkerCodeFixProvider : CodeFixPr
{
private
static
readonly
int
s_mergeConflictLength
=
"<<<<<<<"
.
Length
;
private
readonly
ISyntaxKinds
Service
_syntaxKinds
;
private
readonly
ISyntaxKinds
_syntaxKinds
;
protected
AbstractResolveConflictMarkerCodeFixProvider
(
ISyntaxKinds
Service
syntaxKinds
,
string
diagnosticId
)
ISyntaxKinds
syntaxKinds
,
string
diagnosticId
)
{
FixableDiagnosticIds
=
ImmutableArray
.
Create
(
diagnosticId
);
_syntaxKinds
=
syntaxKinds
;
...
...
src/Features/Core/Portable/ConvertAnonymousTypeToTuple/AbstractConvertAnonymousTypeToTupleDiagnosticAnalyzer.cs
浏览文件 @
0d63ed38
...
...
@@ -17,9 +17,9 @@ internal abstract class AbstractConvertAnonymousTypeToTupleDiagnosticAnalyzer<
where
TSyntaxKind
:
struct
where
TAnonymousObjectCreationExpressionSyntax
:
SyntaxNode
{
private
readonly
ISyntaxKinds
Service
_syntaxKinds
;
private
readonly
ISyntaxKinds
_syntaxKinds
;
protected
AbstractConvertAnonymousTypeToTupleDiagnosticAnalyzer
(
ISyntaxKinds
Service
syntaxKinds
)
protected
AbstractConvertAnonymousTypeToTupleDiagnosticAnalyzer
(
ISyntaxKinds
syntaxKinds
)
:
base
(
IDEDiagnosticIds
.
ConvertAnonymousTypeToTupleDiagnosticId
,
option
:
null
,
new
LocalizableResourceString
(
nameof
(
FeaturesResources
.
Convert_to_tuple
),
FeaturesResources
.
ResourceManager
,
typeof
(
FeaturesResources
)),
...
...
src/Features/VisualBasic/Portable/ConflictMarkerResolution/VisualBasicResolveConflictMarkerCodeFixProvider.vb
浏览文件 @
0d63ed38
...
...
@@ -5,7 +5,6 @@
Imports
System.Composition
Imports
Microsoft.CodeAnalysis.CodeFixes
Imports
Microsoft.CodeAnalysis.ConflictMarkerResolution
Imports
Microsoft.CodeAnalysis.VisualBasic.LanguageServices
Namespace
Microsoft.CodeAnalysis.VisualBasic.ConflictMarkerResolution
<
ExportCodeFixProvider
(
LanguageNames
.
VisualBasic
),
[
Shared
]
>
...
...
@@ -16,7 +15,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.ConflictMarkerResolution
<
ImportingConstructor
>
Public
Sub
New
()
MyBase
.
New
(
VisualBasicSyntaxKinds
Service
.
Instance
,
BC37284
)
MyBase
.
New
(
VisualBasicSyntaxKinds
.
Instance
,
BC37284
)
End
Sub
End
Class
End
Namespace
src/Features/VisualBasic/Portable/ConvertAnonymousTypeToTuple/VisualBasicConvertAnonymousTypeToTupleDiagnosticAnalyzer.vb
浏览文件 @
0d63ed38
...
...
@@ -5,7 +5,6 @@
Imports
Microsoft.CodeAnalysis.ConvertAnonymousTypeToTuple
Imports
Microsoft.CodeAnalysis.Diagnostics
Imports
Microsoft.CodeAnalysis.VisualBasic.Syntax
Imports
Microsoft.CodeAnalysis.VisualBasic.LanguageServices
Namespace
Microsoft.CodeAnalysis.VisualBasic.ConvertAnonymousTypeToTuple
<
DiagnosticAnalyzer
(
LanguageNames
.
VisualBasic
)
>
...
...
@@ -14,7 +13,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.ConvertAnonymousTypeToTuple
SyntaxKind
,
AnonymousObjectCreationExpressionSyntax
)
Public
Sub
New
()
MyBase
.
New
(
VisualBasicSyntaxKinds
Service
.
Instance
)
MyBase
.
New
(
VisualBasicSyntaxKinds
.
Instance
)
End
Sub
Protected
Overrides
Function
GetInitializerCount
(
anonymousType
As
AnonymousObjectCreationExpressionSyntax
)
As
Integer
...
...
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/CSharpCompilerExtensions.projitems
浏览文件 @
0d63ed38
...
...
@@ -61,7 +61,7 @@
<Compile
Include=
"$(MSBuildThisFileDirectory)Formatting\Rules\TokenBasedFormattingRule.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Formatting\Rules\WrappingFormattingRule.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Helpers\RemoveUnnecessaryImports\CSharpUnnecessaryImportsProvider.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Services\SyntaxFacts\CSharpSyntaxKinds
Service
.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Services\SyntaxFacts\CSharpSyntaxKinds.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Utilities\FormattingRangeHelper.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Utilities\TypeStyle\CSharpTypeStyleHelper.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Utilities\TypeStyle\CSharpTypeStyleHelper.State.cs"
/>
...
...
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/Services/SyntaxFacts/CSharpSyntaxKinds
Service
.cs
→
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/Services/SyntaxFacts/CSharpSyntaxKinds.cs
浏览文件 @
0d63ed38
...
...
@@ -4,15 +4,13 @@
#
nullable
enable
using
Microsoft.CodeAnalysis.LanguageServices
;
namespace
Microsoft.CodeAnalysis.CSharp.LanguageServices
namespace
Microsoft.CodeAnalysis.CSharp
{
internal
sealed
class
CSharpSyntaxKindsService
:
ISyntaxKindsService
internal
class
CSharpSyntaxKinds
:
ISyntaxKinds
{
public
static
readonly
CSharpSyntaxKinds
Service
Instance
=
new
CSharpSyntaxKindsService
();
public
static
readonly
CSharpSyntaxKinds
Instance
=
new
CSharpSyntaxKinds
();
pr
ivate
CSharpSyntaxKindsService
()
pr
otected
CSharpSyntaxKinds
()
{
}
...
...
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/CompilerExtensions.projitems
浏览文件 @
0d63ed38
...
...
@@ -270,7 +270,7 @@
<Compile
Include=
"$(MSBuildThisFileDirectory)Log\Logger.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Log\Logger.LogBlock.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Log\LogMessage.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Services\SyntaxFacts\ISyntaxKinds
Service
.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Services\SyntaxFacts\ISyntaxKinds.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Simplification\AliasAnnotation.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Simplification\DoNotAddImportsAnnotation.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Simplification\DoNotAllowVarAnnotation.cs"
/>
...
...
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Services/SyntaxFacts/ISyntaxKinds
Service
.cs
→
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Services/SyntaxFacts/ISyntaxKinds.cs
浏览文件 @
0d63ed38
...
...
@@ -4,13 +4,13 @@
#
nullable
enable
namespace
Microsoft.CodeAnalysis
.LanguageServices
namespace
Microsoft.CodeAnalysis
{
/// <summary>
/// Provides a uniform view of SyntaxKinds over C# and VB for constructs they have
/// in common.
/// </summary>
internal
partial
interface
ISyntaxKindsService
internal
interface
ISyntaxKinds
{
TSyntaxKind
Convert
<
TSyntaxKind
>(
int
kind
)
where
TSyntaxKind
:
struct
;
...
...
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/VisualBasic/Services/SyntaxFacts/VisualBasicSyntaxKinds
Service
.vb
→
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/VisualBasic/Services/SyntaxFacts/VisualBasicSyntaxKinds.vb
浏览文件 @
0d63ed38
...
...
@@ -2,87 +2,85 @@
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports
Microsoft.CodeAnalysis.LanguageServices
Namespace
Microsoft.CodeAnalysis.VisualBasic
Friend
Class
VisualBasicSyntaxKinds
Implements
ISyntaxKinds
Namespace
Microsoft.CodeAnalysis.VisualBasic.LanguageServices
Friend
NotInheritable
Class
VisualBasicSyntaxKindsService
Implements
ISyntaxKindsService
Public
Shared
ReadOnly
Instance
As
New
VisualBasicSyntaxKinds
()
Public
Shared
ReadOnly
Instance
As
New
VisualBasicSyntaxKindsService
()
Private
Sub
New
()
Protected
Sub
New
()
End
Sub
Public
Function
Convert
(
Of
TSyntaxKind
As
Structure
)(
kind
As
Integer
)
As
TSyntaxKind
Implements
ISyntaxKinds
Service
.
Convert
Public
Function
Convert
(
Of
TSyntaxKind
As
Structure
)(
kind
As
Integer
)
As
TSyntaxKind
Implements
ISyntaxKinds
.
Convert
' Boxing/Unboxing casts from Object to TSyntaxKind will be erased by jit.
Return
CType
(
CType
(
CType
(
kind
,
SyntaxKind
),
Object
),
TSyntaxKind
)
End
Function
Public
ReadOnly
Property
ConflictMarkerTrivia
As
Integer
=
SyntaxKind
.
ConflictMarkerTrivia
Implements
ISyntaxKinds
Service
.
ConflictMarkerTrivia
Public
ReadOnly
Property
DisabledTextTrivia
As
Integer
=
SyntaxKind
.
DisabledTextTrivia
Implements
ISyntaxKinds
Service
.
DisabledTextTrivia
Public
ReadOnly
Property
EndOfLineTrivia
As
Integer
=
SyntaxKind
.
EndOfLineTrivia
Implements
ISyntaxKinds
Service
.
EndOfLineTrivia
Public
ReadOnly
Property
SkippedTokensTrivia
As
Integer
=
SyntaxKind
.
SkippedTokensTrivia
Implements
ISyntaxKinds
Service
.
SkippedTokensTrivia
Public
ReadOnly
Property
WhitespaceTrivia
As
Integer
=
SyntaxKind
.
WhitespaceTrivia
Implements
ISyntaxKinds
Service
.
WhitespaceTrivia
Public
ReadOnly
Property
CharacterLiteralToken
As
Integer
=
SyntaxKind
.
CharacterLiteralToken
Implements
ISyntaxKinds
Service
.
CharacterLiteralToken
Public
ReadOnly
Property
DotToken
As
Integer
=
SyntaxKind
.
DotToken
Implements
ISyntaxKinds
Service
.
DotToken
Public
ReadOnly
Property
InterpolatedStringTextToken
As
Integer
=
SyntaxKind
.
InterpolatedStringTextToken
Implements
ISyntaxKinds
Service
.
InterpolatedStringTextToken
Public
ReadOnly
Property
QuestionToken
As
Integer
=
SyntaxKind
.
QuestionToken
Implements
ISyntaxKinds
Service
.
QuestionToken
Public
ReadOnly
Property
StringLiteralToken
As
Integer
=
SyntaxKind
.
StringLiteralToken
Implements
ISyntaxKinds
Service
.
StringLiteralToken
Public
ReadOnly
Property
IfKeyword
As
Integer
=
SyntaxKind
.
IfKeyword
Implements
ISyntaxKinds
Service
.
IfKeyword
Public
ReadOnly
Property
GenericName
As
Integer
=
SyntaxKind
.
GenericName
Implements
ISyntaxKinds
Service
.
GenericName
Public
ReadOnly
Property
IdentifierName
As
Integer
=
SyntaxKind
.
IdentifierName
Implements
ISyntaxKinds
Service
.
IdentifierName
Public
ReadOnly
Property
QualifiedName
As
Integer
=
SyntaxKind
.
QualifiedName
Implements
ISyntaxKinds
Service
.
QualifiedName
Public
ReadOnly
Property
TupleType
As
Integer
=
SyntaxKind
.
TupleType
Implements
ISyntaxKinds
Service
.
TupleType
Public
ReadOnly
Property
CharacterLiteralExpression
As
Integer
=
SyntaxKind
.
CharacterLiteralExpression
Implements
ISyntaxKinds
Service
.
CharacterLiteralExpression
Public
ReadOnly
Property
DefaultLiteralExpression
As
Integer
=
SyntaxKind
.
NothingLiteralExpression
Implements
ISyntaxKinds
Service
.
DefaultLiteralExpression
Public
ReadOnly
Property
FalseLiteralExpression
As
Integer
=
SyntaxKind
.
FalseLiteralExpression
Implements
ISyntaxKinds
Service
.
FalseLiteralExpression
Public
ReadOnly
Property
NullLiteralExpression
As
Integer
=
SyntaxKind
.
NothingLiteralExpression
Implements
ISyntaxKinds
Service
.
NullLiteralExpression
Public
ReadOnly
Property
StringLiteralExpression
As
Integer
=
SyntaxKind
.
StringLiteralExpression
Implements
ISyntaxKinds
Service
.
StringLiteralExpression
Public
ReadOnly
Property
TrueLiteralExpression
As
Integer
=
SyntaxKind
.
TrueLiteralExpression
Implements
ISyntaxKinds
Service
.
TrueLiteralExpression
Public
ReadOnly
Property
AnonymousObjectCreationExpression
As
Integer
=
SyntaxKind
.
AnonymousObjectCreationExpression
Implements
ISyntaxKinds
Service
.
AnonymousObjectCreationExpression
Public
ReadOnly
Property
AwaitExpression
As
Integer
=
SyntaxKind
.
AwaitExpression
Implements
ISyntaxKinds
Service
.
AwaitExpression
Public
ReadOnly
Property
BaseExpression
As
Integer
=
SyntaxKind
.
MyBaseExpression
Implements
ISyntaxKinds
Service
.
BaseExpression
Public
ReadOnly
Property
ConditionalAccessExpression
As
Integer
=
SyntaxKind
.
ConditionalAccessExpression
Implements
ISyntaxKinds
Service
.
ConditionalAccessExpression
Public
ReadOnly
Property
InvocationExpression
As
Integer
=
SyntaxKind
.
InvocationExpression
Implements
ISyntaxKinds
Service
.
InvocationExpression
Public
ReadOnly
Property
LogicalAndExpression
As
Integer
=
SyntaxKind
.
AndAlsoExpression
Implements
ISyntaxKinds
Service
.
LogicalAndExpression
Public
ReadOnly
Property
LogicalOrExpression
As
Integer
=
SyntaxKind
.
OrElseExpression
Implements
ISyntaxKinds
Service
.
LogicalOrExpression
Public
ReadOnly
Property
LogicalNotExpression
As
Integer
=
SyntaxKind
.
NotExpression
Implements
ISyntaxKinds
Service
.
LogicalNotExpression
Public
ReadOnly
Property
ObjectCreationExpression
As
Integer
=
SyntaxKind
.
ObjectCreationExpression
Implements
ISyntaxKinds
Service
.
ObjectCreationExpression
Public
ReadOnly
Property
ParenthesizedExpression
As
Integer
=
SyntaxKind
.
ParenthesizedExpression
Implements
ISyntaxKinds
Service
.
ParenthesizedExpression
Public
ReadOnly
Property
QueryExpression
As
Integer
=
SyntaxKind
.
QueryExpression
Implements
ISyntaxKinds
Service
.
QueryExpression
Public
ReadOnly
Property
ReferenceEqualsExpression
As
Integer
=
SyntaxKind
.
IsExpression
Implements
ISyntaxKinds
Service
.
ReferenceEqualsExpression
Public
ReadOnly
Property
ReferenceNotEqualsExpression
As
Integer
=
SyntaxKind
.
IsNotExpression
Implements
ISyntaxKinds
Service
.
ReferenceNotEqualsExpression
Public
ReadOnly
Property
SimpleMemberAccessExpression
As
Integer
=
SyntaxKind
.
SimpleMemberAccessExpression
Implements
ISyntaxKinds
Service
.
SimpleMemberAccessExpression
Public
ReadOnly
Property
TernaryConditionalExpression
As
Integer
=
SyntaxKind
.
TernaryConditionalExpression
Implements
ISyntaxKinds
Service
.
TernaryConditionalExpression
Public
ReadOnly
Property
ThisExpression
As
Integer
=
SyntaxKind
.
MeExpression
Implements
ISyntaxKinds
Service
.
ThisExpression
Public
ReadOnly
Property
TupleExpression
As
Integer
=
SyntaxKind
.
TupleExpression
Implements
ISyntaxKinds
Service
.
TupleExpression
Public
ReadOnly
Property
EndOfFileToken
As
Integer
=
SyntaxKind
.
EndOfFileToken
Implements
ISyntaxKinds
Service
.
EndOfFileToken
Public
ReadOnly
Property
AwaitKeyword
As
Integer
=
SyntaxKind
.
AwaitKeyword
Implements
ISyntaxKinds
Service
.
AwaitKeyword
Public
ReadOnly
Property
IdentifierToken
As
Integer
=
SyntaxKind
.
IdentifierToken
Implements
ISyntaxKinds
Service
.
IdentifierToken
Public
ReadOnly
Property
GlobalKeyword
As
Integer
=
SyntaxKind
.
GlobalKeyword
Implements
ISyntaxKinds
Service
.
GlobalKeyword
Public
ReadOnly
Property
IncompleteMember
As
Integer
=
SyntaxKind
.
IncompleteMember
Implements
ISyntaxKinds
Service
.
IncompleteMember
Public
ReadOnly
Property
HashToken
As
Integer
=
SyntaxKind
.
HashToken
Implements
ISyntaxKinds
Service
.
HashToken
Public
ReadOnly
Property
ExpressionStatement
As
Integer
=
SyntaxKind
.
ExpressionStatement
Implements
ISyntaxKinds
Service
.
ExpressionStatement
Public
ReadOnly
Property
ForEachStatement
As
Integer
=
SyntaxKind
.
ForEachStatement
Implements
ISyntaxKinds
Service
.
ForEachStatement
Public
ReadOnly
Property
LocalDeclarationStatement
As
Integer
=
SyntaxKind
.
LocalDeclarationStatement
Implements
ISyntaxKinds
Service
.
LocalDeclarationStatement
Public
ReadOnly
Property
LockStatement
As
Integer
=
SyntaxKind
.
SyncLockStatement
Implements
ISyntaxKinds
Service
.
LockStatement
Public
ReadOnly
Property
ReturnStatement
As
Integer
=
SyntaxKind
.
ReturnStatement
Implements
ISyntaxKinds
Service
.
ReturnStatement
Public
ReadOnly
Property
UsingStatement
As
Integer
=
SyntaxKind
.
UsingStatement
Implements
ISyntaxKinds
Service
.
UsingStatement
Public
ReadOnly
Property
Attribute
As
Integer
=
SyntaxKind
.
Attribute
Implements
ISyntaxKinds
Service
.
Attribute
Public
ReadOnly
Property
Parameter
As
Integer
=
SyntaxKind
.
Parameter
Implements
ISyntaxKinds
Service
.
Parameter
Public
ReadOnly
Property
TypeConstraint
As
Integer
=
SyntaxKind
.
TypeConstraint
Implements
ISyntaxKinds
Service
.
TypeConstraint
Public
ReadOnly
Property
VariableDeclarator
As
Integer
=
SyntaxKind
.
VariableDeclarator
Implements
ISyntaxKinds
Service
.
VariableDeclarator
Public
ReadOnly
Property
TypeArgumentList
As
Integer
=
SyntaxKind
.
TypeArgumentList
Implements
ISyntaxKinds
Service
.
TypeArgumentList
Public
ReadOnly
Property
ConflictMarkerTrivia
As
Integer
=
SyntaxKind
.
ConflictMarkerTrivia
Implements
ISyntaxKinds
.
ConflictMarkerTrivia
Public
ReadOnly
Property
DisabledTextTrivia
As
Integer
=
SyntaxKind
.
DisabledTextTrivia
Implements
ISyntaxKinds
.
DisabledTextTrivia
Public
ReadOnly
Property
EndOfLineTrivia
As
Integer
=
SyntaxKind
.
EndOfLineTrivia
Implements
ISyntaxKinds
.
EndOfLineTrivia
Public
ReadOnly
Property
SkippedTokensTrivia
As
Integer
=
SyntaxKind
.
SkippedTokensTrivia
Implements
ISyntaxKinds
.
SkippedTokensTrivia
Public
ReadOnly
Property
WhitespaceTrivia
As
Integer
=
SyntaxKind
.
WhitespaceTrivia
Implements
ISyntaxKinds
.
WhitespaceTrivia
Public
ReadOnly
Property
CharacterLiteralToken
As
Integer
=
SyntaxKind
.
CharacterLiteralToken
Implements
ISyntaxKinds
.
CharacterLiteralToken
Public
ReadOnly
Property
DotToken
As
Integer
=
SyntaxKind
.
DotToken
Implements
ISyntaxKinds
.
DotToken
Public
ReadOnly
Property
InterpolatedStringTextToken
As
Integer
=
SyntaxKind
.
InterpolatedStringTextToken
Implements
ISyntaxKinds
.
InterpolatedStringTextToken
Public
ReadOnly
Property
QuestionToken
As
Integer
=
SyntaxKind
.
QuestionToken
Implements
ISyntaxKinds
.
QuestionToken
Public
ReadOnly
Property
StringLiteralToken
As
Integer
=
SyntaxKind
.
StringLiteralToken
Implements
ISyntaxKinds
.
StringLiteralToken
Public
ReadOnly
Property
IfKeyword
As
Integer
=
SyntaxKind
.
IfKeyword
Implements
ISyntaxKinds
.
IfKeyword
Public
ReadOnly
Property
GenericName
As
Integer
=
SyntaxKind
.
GenericName
Implements
ISyntaxKinds
.
GenericName
Public
ReadOnly
Property
IdentifierName
As
Integer
=
SyntaxKind
.
IdentifierName
Implements
ISyntaxKinds
.
IdentifierName
Public
ReadOnly
Property
QualifiedName
As
Integer
=
SyntaxKind
.
QualifiedName
Implements
ISyntaxKinds
.
QualifiedName
Public
ReadOnly
Property
TupleType
As
Integer
=
SyntaxKind
.
TupleType
Implements
ISyntaxKinds
.
TupleType
Public
ReadOnly
Property
CharacterLiteralExpression
As
Integer
=
SyntaxKind
.
CharacterLiteralExpression
Implements
ISyntaxKinds
.
CharacterLiteralExpression
Public
ReadOnly
Property
DefaultLiteralExpression
As
Integer
=
SyntaxKind
.
NothingLiteralExpression
Implements
ISyntaxKinds
.
DefaultLiteralExpression
Public
ReadOnly
Property
FalseLiteralExpression
As
Integer
=
SyntaxKind
.
FalseLiteralExpression
Implements
ISyntaxKinds
.
FalseLiteralExpression
Public
ReadOnly
Property
NullLiteralExpression
As
Integer
=
SyntaxKind
.
NothingLiteralExpression
Implements
ISyntaxKinds
.
NullLiteralExpression
Public
ReadOnly
Property
StringLiteralExpression
As
Integer
=
SyntaxKind
.
StringLiteralExpression
Implements
ISyntaxKinds
.
StringLiteralExpression
Public
ReadOnly
Property
TrueLiteralExpression
As
Integer
=
SyntaxKind
.
TrueLiteralExpression
Implements
ISyntaxKinds
.
TrueLiteralExpression
Public
ReadOnly
Property
AnonymousObjectCreationExpression
As
Integer
=
SyntaxKind
.
AnonymousObjectCreationExpression
Implements
ISyntaxKinds
.
AnonymousObjectCreationExpression
Public
ReadOnly
Property
AwaitExpression
As
Integer
=
SyntaxKind
.
AwaitExpression
Implements
ISyntaxKinds
.
AwaitExpression
Public
ReadOnly
Property
BaseExpression
As
Integer
=
SyntaxKind
.
MyBaseExpression
Implements
ISyntaxKinds
.
BaseExpression
Public
ReadOnly
Property
ConditionalAccessExpression
As
Integer
=
SyntaxKind
.
ConditionalAccessExpression
Implements
ISyntaxKinds
.
ConditionalAccessExpression
Public
ReadOnly
Property
InvocationExpression
As
Integer
=
SyntaxKind
.
InvocationExpression
Implements
ISyntaxKinds
.
InvocationExpression
Public
ReadOnly
Property
LogicalAndExpression
As
Integer
=
SyntaxKind
.
AndAlsoExpression
Implements
ISyntaxKinds
.
LogicalAndExpression
Public
ReadOnly
Property
LogicalOrExpression
As
Integer
=
SyntaxKind
.
OrElseExpression
Implements
ISyntaxKinds
.
LogicalOrExpression
Public
ReadOnly
Property
LogicalNotExpression
As
Integer
=
SyntaxKind
.
NotExpression
Implements
ISyntaxKinds
.
LogicalNotExpression
Public
ReadOnly
Property
ObjectCreationExpression
As
Integer
=
SyntaxKind
.
ObjectCreationExpression
Implements
ISyntaxKinds
.
ObjectCreationExpression
Public
ReadOnly
Property
ParenthesizedExpression
As
Integer
=
SyntaxKind
.
ParenthesizedExpression
Implements
ISyntaxKinds
.
ParenthesizedExpression
Public
ReadOnly
Property
QueryExpression
As
Integer
=
SyntaxKind
.
QueryExpression
Implements
ISyntaxKinds
.
QueryExpression
Public
ReadOnly
Property
ReferenceEqualsExpression
As
Integer
=
SyntaxKind
.
IsExpression
Implements
ISyntaxKinds
.
ReferenceEqualsExpression
Public
ReadOnly
Property
ReferenceNotEqualsExpression
As
Integer
=
SyntaxKind
.
IsNotExpression
Implements
ISyntaxKinds
.
ReferenceNotEqualsExpression
Public
ReadOnly
Property
SimpleMemberAccessExpression
As
Integer
=
SyntaxKind
.
SimpleMemberAccessExpression
Implements
ISyntaxKinds
.
SimpleMemberAccessExpression
Public
ReadOnly
Property
TernaryConditionalExpression
As
Integer
=
SyntaxKind
.
TernaryConditionalExpression
Implements
ISyntaxKinds
.
TernaryConditionalExpression
Public
ReadOnly
Property
ThisExpression
As
Integer
=
SyntaxKind
.
MeExpression
Implements
ISyntaxKinds
.
ThisExpression
Public
ReadOnly
Property
TupleExpression
As
Integer
=
SyntaxKind
.
TupleExpression
Implements
ISyntaxKinds
.
TupleExpression
Public
ReadOnly
Property
EndOfFileToken
As
Integer
=
SyntaxKind
.
EndOfFileToken
Implements
ISyntaxKinds
.
EndOfFileToken
Public
ReadOnly
Property
AwaitKeyword
As
Integer
=
SyntaxKind
.
AwaitKeyword
Implements
ISyntaxKinds
.
AwaitKeyword
Public
ReadOnly
Property
IdentifierToken
As
Integer
=
SyntaxKind
.
IdentifierToken
Implements
ISyntaxKinds
.
IdentifierToken
Public
ReadOnly
Property
GlobalKeyword
As
Integer
=
SyntaxKind
.
GlobalKeyword
Implements
ISyntaxKinds
.
GlobalKeyword
Public
ReadOnly
Property
IncompleteMember
As
Integer
=
SyntaxKind
.
IncompleteMember
Implements
ISyntaxKinds
.
IncompleteMember
Public
ReadOnly
Property
HashToken
As
Integer
=
SyntaxKind
.
HashToken
Implements
ISyntaxKinds
.
HashToken
Public
ReadOnly
Property
ExpressionStatement
As
Integer
=
SyntaxKind
.
ExpressionStatement
Implements
ISyntaxKinds
.
ExpressionStatement
Public
ReadOnly
Property
ForEachStatement
As
Integer
=
SyntaxKind
.
ForEachStatement
Implements
ISyntaxKinds
.
ForEachStatement
Public
ReadOnly
Property
LocalDeclarationStatement
As
Integer
=
SyntaxKind
.
LocalDeclarationStatement
Implements
ISyntaxKinds
.
LocalDeclarationStatement
Public
ReadOnly
Property
LockStatement
As
Integer
=
SyntaxKind
.
SyncLockStatement
Implements
ISyntaxKinds
.
LockStatement
Public
ReadOnly
Property
ReturnStatement
As
Integer
=
SyntaxKind
.
ReturnStatement
Implements
ISyntaxKinds
.
ReturnStatement
Public
ReadOnly
Property
UsingStatement
As
Integer
=
SyntaxKind
.
UsingStatement
Implements
ISyntaxKinds
.
UsingStatement
Public
ReadOnly
Property
Attribute
As
Integer
=
SyntaxKind
.
Attribute
Implements
ISyntaxKinds
.
Attribute
Public
ReadOnly
Property
Parameter
As
Integer
=
SyntaxKind
.
Parameter
Implements
ISyntaxKinds
.
Parameter
Public
ReadOnly
Property
TypeConstraint
As
Integer
=
SyntaxKind
.
TypeConstraint
Implements
ISyntaxKinds
.
TypeConstraint
Public
ReadOnly
Property
VariableDeclarator
As
Integer
=
SyntaxKind
.
VariableDeclarator
Implements
ISyntaxKinds
.
VariableDeclarator
Public
ReadOnly
Property
TypeArgumentList
As
Integer
=
SyntaxKind
.
TypeArgumentList
Implements
ISyntaxKinds
.
TypeArgumentList
End
Class
End
Namespace
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/VisualBasic/VisualBasicCompilerExtensions.projitems
浏览文件 @
0d63ed38
...
...
@@ -13,7 +13,7 @@
<Compile
Include=
"$(MSBuildThisFileDirectory)Extensions\SyntaxTreeExtensions_SharedWithCodeStyle.vb"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Extensions\SyntaxTriviaExtensions.vb"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Helpers\RemoveUnnecessaryImports\VisualBasicUnnecessaryImportsProvider.vb"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Services\SyntaxFacts\VisualBasicSyntaxKinds
Service
.vb"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Services\SyntaxFacts\VisualBasicSyntaxKinds.vb"
/>
</ItemGroup>
<ItemGroup>
<EmbeddedResource
Include=
"$(MSBuildThisFileDirectory)VisualBasicCompilerExtensionsResources.resx"
GenerateSource=
"true"
Link=
"VisualBasicCompilerExtensionsResources.resx"
/>
...
...
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/CSharp/CSharpWorkspaceExtensions.projitems
浏览文件 @
0d63ed38
...
...
@@ -61,6 +61,7 @@
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\CSharpSymbolDeclarationService.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\CSharpSyntaxFactsService.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\CSharpSyntaxFactsServiceFactory.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\CSharpSyntaxKindsServiceFactory.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\CSharpTypeInferenceService.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\CSharpGeneratedCodeRecognitionService.cs"
/>
...
...
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/CSharp/LanguageServices/CSharpSyntaxFactsService.cs
浏览文件 @
0d63ed38
...
...
@@ -12,7 +12,6 @@
using
System.Threading
;
using
Microsoft.CodeAnalysis.CSharp.Extensions
;
using
Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery
;
using
Microsoft.CodeAnalysis.CSharp.LanguageServices
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.Formatting
;
using
Microsoft.CodeAnalysis.LanguageServices
;
...
...
@@ -41,7 +40,7 @@ public SyntaxTrivia ElasticMarker
public
SyntaxTrivia
ElasticCarriageReturnLineFeed
=>
SyntaxFactory
.
ElasticCarriageReturnLineFeed
;
public
override
ISyntaxKinds
Service
SyntaxKinds
{
get
;
}
=
CSharpSyntaxKindsService
.
Instance
;
public
override
ISyntaxKinds
SyntaxKinds
{
get
;
}
=
CSharpSyntaxKinds
.
Instance
;
protected
override
IDocumentationCommentService
DocumentationCommentService
=>
CSharpDocumentationCommentService
.
Instance
;
...
...
src/Workspaces/
CSharp/Portable/LanguageServices/SyntaxFact
s/CSharpSyntaxKindsServiceFactory.cs
→
src/Workspaces/
SharedUtilitiesAndExtensions/Workspace/CSharp/LanguageService
s/CSharpSyntaxKindsServiceFactory.cs
浏览文件 @
0d63ed38
...
...
@@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information.
using
System.Composition
;
using
Microsoft.CodeAnalysis.CSharp.LanguageServices
;
using
Microsoft.CodeAnalysis.Host
;
using
Microsoft.CodeAnalysis.Host.Mef
;
using
Microsoft.CodeAnalysis.LanguageServices
;
...
...
@@ -15,5 +14,10 @@ internal class CSharpSyntaxKindsServiceFactory : ILanguageServiceFactory
{
public
ILanguageService
CreateLanguageService
(
HostLanguageServices
languageServices
)
=>
CSharpSyntaxKindsService
.
Instance
;
private
sealed
class
CSharpSyntaxKindsService
:
CSharpSyntaxKinds
,
ISyntaxKindsService
{
public
static
readonly
new
CSharpSyntaxKindsService
Instance
=
new
CSharpSyntaxKindsService
();
}
}
}
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/LanguageServices/SyntaxFactsService/AbstractSyntaxFactsService.cs
浏览文件 @
0d63ed38
...
...
@@ -22,7 +22,7 @@ internal abstract class AbstractSyntaxFactsService
private
readonly
static
ObjectPool
<
Stack
<(
SyntaxNodeOrToken
nodeOrToken
,
bool
leading
,
bool
trailing
)>>
s_stackPool
=
SharedPools
.
Default
<
Stack
<(
SyntaxNodeOrToken
nodeOrToken
,
bool
leading
,
bool
trailing
)>>();
public
abstract
ISyntaxKinds
Service
SyntaxKinds
{
get
;
}
public
abstract
ISyntaxKinds
SyntaxKinds
{
get
;
}
// Matches the following:
//
...
...
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/LanguageServices/SyntaxFactsService/ISyntaxFactsService.cs
浏览文件 @
0d63ed38
...
...
@@ -20,7 +20,7 @@ internal interface ISyntaxFactsService : ILanguageService
SyntaxTrivia
ElasticMarker
{
get
;
}
SyntaxTrivia
ElasticCarriageReturnLineFeed
{
get
;
}
ISyntaxKinds
Service
SyntaxKinds
{
get
;
}
ISyntaxKinds
SyntaxKinds
{
get
;
}
bool
SupportsIndexingInitializer
(
ParseOptions
options
);
bool
SupportsThrowExpression
(
ParseOptions
options
);
...
...
src/Workspaces/
Core/Portable/LanguageServices/SyntaxFacts/ISyntaxKindsService_Language
Service.cs
→
src/Workspaces/
SharedUtilitiesAndExtensions/Workspace/Core/LanguageServices/SyntaxFactsService/ISyntaxKinds
Service.cs
浏览文件 @
0d63ed38
...
...
@@ -12,7 +12,7 @@ namespace Microsoft.CodeAnalysis.LanguageServices
/// Provides a uniform view of SyntaxKinds over C# and VB for constructs they have
/// in common.
/// </summary>
internal
partial
interface
ISyntaxKindsService
:
ILanguageService
internal
partial
interface
ISyntaxKindsService
:
I
SyntaxKinds
,
I
LanguageService
{
}
}
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/WorkspaceExtensions.projitems
浏览文件 @
0d63ed38
...
...
@@ -35,6 +35,7 @@
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\Precedence\PrecedenceKind.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\RemoveUnnecessaryImports\IRemoveUnnecessaryImportsService.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\SyntaxFactsService\ISyntaxKindsService.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\TypeInferenceService\AbstractTypeInferenceService.cs"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\TypeInferenceService\ITypeInferenceService.cs"
/>
...
...
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/VisualBasic/LanguageServices/VisualBasicSyntaxFactsService.vb
浏览文件 @
0d63ed38
...
...
@@ -11,7 +11,6 @@ Imports Microsoft.CodeAnalysis.PooledObjects
Imports
Microsoft.CodeAnalysis.Text
Imports
Microsoft.CodeAnalysis.VisualBasic.CodeGeneration
Imports
Microsoft.CodeAnalysis.VisualBasic.Extensions.ContextQuery
Imports
Microsoft.CodeAnalysis.VisualBasic.LanguageServices
Imports
Microsoft.CodeAnalysis.VisualBasic.Syntax
Imports
Microsoft.CodeAnalysis.VisualBasic.SyntaxFacts
...
...
@@ -49,7 +48,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
End
Get
End
Property
Public
Overrides
ReadOnly
Property
SyntaxKinds
As
ISyntaxKinds
Service
=
VisualBasicSyntaxKindsService
.
Instance
Implements
ISyntaxFactsService
.
SyntaxKinds
Public
Overrides
ReadOnly
Property
SyntaxKinds
As
ISyntaxKinds
=
VisualBasicSyntaxKinds
.
Instance
Implements
ISyntaxFactsService
.
SyntaxKinds
Protected
Overrides
ReadOnly
Property
DocumentationCommentService
As
IDocumentationCommentService
Get
...
...
src/Workspaces/
VisualBasic/Portable/LanguageServices/SyntaxFact
s/VisualBasicSyntaxKindsServiceFactory.vb
→
src/Workspaces/
SharedUtilitiesAndExtensions/Workspace/VisualBasic/LanguageService
s/VisualBasicSyntaxKindsServiceFactory.vb
浏览文件 @
0d63ed38
...
...
@@ -6,7 +6,6 @@ Imports System.Composition
Imports
Microsoft.CodeAnalysis.Host
Imports
Microsoft.CodeAnalysis.Host.Mef
Imports
Microsoft.CodeAnalysis.LanguageServices
Imports
Microsoft.CodeAnalysis.VisualBasic.LanguageServices
Namespace
Microsoft.CodeAnalysis.VisualBasic
<
ExportLanguageServiceFactory
(
GetType
(
ISyntaxKindsService
),
LanguageNames
.
VisualBasic
),
[
Shared
]
>
...
...
@@ -16,5 +15,12 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Public
Function
CreateLanguageService
(
languageServices
As
HostLanguageServices
)
As
ILanguageService
Implements
ILanguageServiceFactory
.
CreateLanguageService
Return
VisualBasicSyntaxKindsService
.
Instance
End
Function
Private
NotInheritable
Class
VisualBasicSyntaxKindsService
Inherits
VisualBasicSyntaxKinds
Implements
ISyntaxKindsService
Public
Shared
Shadows
ReadOnly
Instance
As
New
VisualBasicSyntaxKindsService
End
Class
End
Class
End
Namespace
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/VisualBasic/VisualBasicWorkspaceExtensions.projitems
浏览文件 @
0d63ed38
...
...
@@ -60,6 +60,7 @@
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\VisualBasicSymbolDeclarationService.vb"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\VisualBasicSyntaxFactsService.vb"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\VisualBasicSyntaxFactsServiceFactory.vb"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\VisualBasicSyntaxKindsServiceFactory.vb"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)LanguageServices\VisualBasicTypeInferenceService.vb"
/>
<Compile
Include=
"$(MSBuildThisFileDirectory)Utilities\DirectiveSyntaxEqualityComparer.vb"
/>
...
...
src/Workspaces/VisualBasic/Portable/Microsoft.CodeAnalysis.VisualBasic.Workspaces.vbproj
浏览文件 @
0d63ed38
...
...
@@ -41,7 +41,7 @@
<InternalsVisibleTo
Include=
"Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities"
/>
</ItemGroup>
<ItemGroup>
<EmbeddedResource
Update=
"VBWorkspaceResources.resx"
GenerateSource=
"true"
NAmespace=
"Microsoft.CodeAnalysis.VisualBasic"
/>
<EmbeddedResource
Update=
"VBWorkspaceResources.resx"
GenerateSource=
"true"
NAmespace=
"Microsoft.CodeAnalysis.VisualBasic"
/>
</ItemGroup>
<ItemGroup>
<Folder
Include=
"Workspace\LanguageServices\"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录