Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
36ebc7f7
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,发现更多精彩内容 >>
提交
36ebc7f7
编写于
5月 11, 2016
作者:
A
Artur Spychaj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make use of InvocationReason in tests and analyzers
上级
52d00a2f
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
38 addition
and
34 deletion
+38
-34
src/EditorFeatures/CSharpTest/TodoComment/TodoCommentTests.cs
...EditorFeatures/CSharpTest/TodoComment/TodoCommentTests.cs
+1
-1
src/EditorFeatures/Test/Diagnostics/DiagnosticAnalyzerServiceTests.cs
...atures/Test/Diagnostics/DiagnosticAnalyzerServiceTests.cs
+7
-6
src/EditorFeatures/Test/SolutionCrawler/WorkCoordinatorTests.cs
...itorFeatures/Test/SolutionCrawler/WorkCoordinatorTests.cs
+3
-3
src/EditorFeatures/Test2/Diagnostics/DiagnosticServiceTests.vb
...ditorFeatures/Test2/Diagnostics/DiagnosticServiceTests.vb
+2
-1
src/EditorFeatures/VisualBasicTest/TodoComment/TodoCommentTests.vb
...rFeatures/VisualBasicTest/TodoComment/TodoCommentTests.vb
+1
-1
src/Features/Core/Portable/Features.csproj
src/Features/Core/Portable/Features.csproj
+0
-3
src/Features/Core/Portable/SolutionCrawler/WorkCoordinator.NormalPriorityProcessor.cs
...olutionCrawler/WorkCoordinator.NormalPriorityProcessor.cs
+1
-1
src/VisualStudio/CSharp/Test/CSharpVisualStudioTest.csproj
src/VisualStudio/CSharp/Test/CSharpVisualStudioTest.csproj
+1
-2
src/VisualStudio/CSharp/Test/PersistentStorage/SolutionSizeTests.cs
...Studio/CSharp/Test/PersistentStorage/SolutionSizeTests.cs
+3
-2
src/VisualStudio/Core/Def/Implementation/SolutionSize/SolutionSizeTracker.cs
...re/Def/Implementation/SolutionSize/SolutionSizeTracker.cs
+1
-0
src/VisualStudio/Core/Impl/CodeModel/CodeModelIncrementalAnalyzer.cs
...tudio/Core/Impl/CodeModel/CodeModelIncrementalAnalyzer.cs
+3
-3
src/VisualStudio/Core/Test/Diagnostics/DefaultDiagnosticUpdateSourceTests.vb
...re/Test/Diagnostics/DefaultDiagnosticUpdateSourceTests.vb
+12
-11
src/Workspaces/Core/Portable/SolutionCrawler/InvocationReasons.cs
...spaces/Core/Portable/SolutionCrawler/InvocationReasons.cs
+0
-0
src/Workspaces/Core/Portable/SolutionCrawler/InvocationReasons_Constants.cs
...e/Portable/SolutionCrawler/InvocationReasons_Constants.cs
+0
-0
src/Workspaces/Core/Portable/SolutionCrawler/PredefinedInvocationReasons.cs
...e/Portable/SolutionCrawler/PredefinedInvocationReasons.cs
+0
-0
src/Workspaces/Core/Portable/Workspaces.csproj
src/Workspaces/Core/Portable/Workspaces.csproj
+3
-0
未找到文件。
src/EditorFeatures/CSharpTest/TodoComment/TodoCommentTests.cs
浏览文件 @
36ebc7f7
...
...
@@ -176,7 +176,7 @@ private static async Task TestAsync(string codeWithMarker)
var
document
=
workspace
.
Documents
.
First
();
var
documentId
=
document
.
Id
;
var
reasons
=
new
InvocationReasons
(
PredefinedInvocationReasons
.
DocumentAdded
);
await
worker
.
AnalyzeSyntaxAsync
(
workspace
.
CurrentSolution
.
GetDocument
(
documentId
),
CancellationToken
.
None
);
await
worker
.
AnalyzeSyntaxAsync
(
workspace
.
CurrentSolution
.
GetDocument
(
documentId
),
InvocationReasons
.
Empty
,
CancellationToken
.
None
);
var
todoLists
=
worker
.
GetItems_TestingOnly
(
documentId
);
var
expectedLists
=
document
.
SelectedSpans
;
...
...
src/EditorFeatures/Test/Diagnostics/DiagnosticAnalyzerServiceTests.cs
浏览文件 @
36ebc7f7
...
...
@@ -6,6 +6,7 @@
using
System.Threading.Tasks
;
using
Microsoft.CodeAnalysis.Diagnostics
;
using
Microsoft.CodeAnalysis.Shared.TestHooks
;
using
Microsoft.CodeAnalysis.SolutionCrawler
;
using
Microsoft.CodeAnalysis.Text
;
using
Roslyn.Test.Utilities
;
using
Roslyn.Utilities
;
...
...
@@ -31,9 +32,9 @@ public async Task TestHasSuccessfullyLoadedBeingFalse()
service
.
DiagnosticsUpdated
+=
(
s
,
a
)
=>
Assert
.
Empty
(
a
.
Diagnostics
);
// now call each analyze method. none of them should run.
await
analyzer
.
AnalyzeSyntaxAsync
(
document
,
CancellationToken
.
None
).
ConfigureAwait
(
false
);
await
analyzer
.
AnalyzeDocumentAsync
(
document
,
bodyOpt
:
null
,
cancellationToken
:
CancellationToken
.
None
).
ConfigureAwait
(
false
);
await
analyzer
.
AnalyzeProjectAsync
(
document
.
Project
,
semanticsChanged
:
true
,
cancellationToken
:
CancellationToken
.
None
).
ConfigureAwait
(
false
);
await
analyzer
.
AnalyzeSyntaxAsync
(
document
,
InvocationReasons
.
Empty
,
CancellationToken
.
None
).
ConfigureAwait
(
false
);
await
analyzer
.
AnalyzeDocumentAsync
(
document
,
bodyOpt
:
null
,
reasons
:
InvocationReasons
.
Empty
,
cancellationToken
:
CancellationToken
.
None
).
ConfigureAwait
(
false
);
await
analyzer
.
AnalyzeProjectAsync
(
document
.
Project
,
semanticsChanged
:
true
,
reasons
:
InvocationReasons
.
Empty
,
cancellationToken
:
CancellationToken
.
None
).
ConfigureAwait
(
false
);
// wait for all events to raised
await
listener
.
CreateWaitTask
().
ConfigureAwait
(
false
);
...
...
@@ -74,9 +75,9 @@ public async Task TestHasSuccessfullyLoadedBeingFalseWhenFileOpened()
};
// now call each analyze method. none of them should run.
await
analyzer
.
AnalyzeSyntaxAsync
(
document
,
CancellationToken
.
None
).
ConfigureAwait
(
false
);
await
analyzer
.
AnalyzeDocumentAsync
(
document
,
bodyOpt
:
null
,
cancellationToken
:
CancellationToken
.
None
).
ConfigureAwait
(
false
);
await
analyzer
.
AnalyzeProjectAsync
(
document
.
Project
,
semanticsChanged
:
true
,
cancellationToken
:
CancellationToken
.
None
).
ConfigureAwait
(
false
);
await
analyzer
.
AnalyzeSyntaxAsync
(
document
,
InvocationReasons
.
Empty
,
CancellationToken
.
None
).
ConfigureAwait
(
false
);
await
analyzer
.
AnalyzeDocumentAsync
(
document
,
bodyOpt
:
null
,
reasons
:
InvocationReasons
.
Empty
,
cancellationToken
:
CancellationToken
.
None
).
ConfigureAwait
(
false
);
await
analyzer
.
AnalyzeProjectAsync
(
document
.
Project
,
semanticsChanged
:
true
,
reasons
:
InvocationReasons
.
Empty
,
cancellationToken
:
CancellationToken
.
None
).
ConfigureAwait
(
false
);
// wait for all events to raised
await
listener
.
CreateWaitTask
().
ConfigureAwait
(
false
);
...
...
src/EditorFeatures/Test/SolutionCrawler/WorkCoordinatorTests.cs
浏览文件 @
36ebc7f7
...
...
@@ -1039,13 +1039,13 @@ public Analyzer(bool waitForCancellation = false, bool blockedRun = false)
this
.
RunningEvent
=
new
ManualResetEventSlim
(
initialState
:
false
);
}
public
Task
AnalyzeProjectAsync
(
Project
project
,
bool
semanticsChanged
,
CancellationToken
cancellationToken
)
public
Task
AnalyzeProjectAsync
(
Project
project
,
bool
semanticsChanged
,
InvocationReasons
reasons
,
CancellationToken
cancellationToken
)
{
this
.
ProjectIds
.
Add
(
project
.
Id
);
return
SpecializedTasks
.
EmptyTask
;
}
public
Task
AnalyzeDocumentAsync
(
Document
document
,
SyntaxNode
bodyOpt
,
CancellationToken
cancellationToken
)
public
Task
AnalyzeDocumentAsync
(
Document
document
,
SyntaxNode
bodyOpt
,
InvocationReasons
reasons
,
CancellationToken
cancellationToken
)
{
if
(
bodyOpt
==
null
)
{
...
...
@@ -1055,7 +1055,7 @@ public Task AnalyzeDocumentAsync(Document document, SyntaxNode bodyOpt, Cancella
return
SpecializedTasks
.
EmptyTask
;
}
public
Task
AnalyzeSyntaxAsync
(
Document
document
,
CancellationToken
cancellationToken
)
public
Task
AnalyzeSyntaxAsync
(
Document
document
,
InvocationReasons
reasons
,
CancellationToken
cancellationToken
)
{
this
.
SyntaxDocumentIds
.
Add
(
document
.
Id
);
Process
(
document
.
Id
,
cancellationToken
);
...
...
src/EditorFeatures/Test2/Diagnostics/DiagnosticServiceTests.vb
浏览文件 @
36ebc7f7
...
...
@@ -11,6 +11,7 @@ Imports Microsoft.CodeAnalysis.Editor.UnitTests.Diagnostics
Imports
Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces
Imports
Microsoft.CodeAnalysis.Options
Imports
Microsoft.CodeAnalysis.Shared.Options
Imports
Microsoft.CodeAnalysis.SolutionCrawler
Imports
Microsoft.CodeAnalysis.Test.Utilities
Imports
Microsoft.CodeAnalysis.Text
Imports
Microsoft.CodeAnalysis.UnitTests.Diagnostics
...
...
@@ -1937,7 +1938,7 @@ class MyClass
Assert
.
Equal
(
HiddenDiagnosticsCompilationAnalyzer
.
Descriptor
.
Id
,
descriptors
.
Single
().
Id
)
' Force project analysis
incrementalAnalyzer
.
AnalyzeProjectAsync
(
project
,
semanticsChanged
:
=
True
,
cancellationToken
:
=
CancellationToken
.
None
).
Wait
()
incrementalAnalyzer
.
AnalyzeProjectAsync
(
project
,
semanticsChanged
:
=
True
,
reasons
:
=
InvocationReasons
.
Empty
,
cancellationToken
:
=
CancellationToken
.
None
).
Wait
()
' Get cached project diagnostics.
Dim
diagnostics
=
diagnosticService
.
GetCachedDiagnosticsAsync
(
workspace
,
project
.
Id
).
WaitAndGetResult
(
CancellationToken
.
None
)
...
...
src/EditorFeatures/VisualBasicTest/TodoComment/TodoCommentTests.vb
浏览文件 @
36ebc7f7
...
...
@@ -185,7 +185,7 @@ Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.TodoComment
Dim
document
=
workspace
.
Documents
.
First
()
Dim
documentId
=
document
.
Id
Await
worker
.
AnalyzeSyntaxAsync
(
workspace
.
CurrentSolution
.
GetDocument
(
documentId
),
CancellationToken
.
None
)
Await
worker
.
AnalyzeSyntaxAsync
(
workspace
.
CurrentSolution
.
GetDocument
(
documentId
),
InvocationReasons
.
Empty
,
CancellationToken
.
None
)
Dim
todoLists
=
worker
.
GetItems_TestingOnly
(
documentId
)
...
...
src/Features/Core/Portable/Features.csproj
浏览文件 @
36ebc7f7
...
...
@@ -587,12 +587,9 @@
<Compile
Include=
"SolutionCrawler\IncrementalAnalyzerBase.cs"
/>
<Compile
Include=
"SolutionCrawler\IncrementalAnalyzerProviderBase.cs"
/>
<Compile
Include=
"SolutionCrawler\InternalSolutionCrawlerOptionsProvider.cs"
/>
<Compile
Include=
"SolutionCrawler\InvocationReasons.cs"
/>
<Compile
Include=
"SolutionCrawler\InvocationReasons_Constants.cs"
/>
<Compile
Include=
"SolutionCrawler\ISolutionCrawlerProgressReporter.cs"
/>
<Compile
Include=
"SolutionCrawler\ISolutionCrawlerService.cs"
/>
<Compile
Include=
"SolutionCrawler\IWorkCoordinatorPriorityService.cs"
/>
<Compile
Include=
"SolutionCrawler\PredefinedInvocationReasons.cs"
/>
<Compile
Include=
"SolutionCrawler\SolutionCrawlerLogger.cs"
/>
<Compile
Include=
"SolutionCrawler\InternalSolutionCrawlerOptions.cs"
/>
<Compile
Include=
"SolutionCrawler\SolutionCrawlerProgressReporter.cs"
/>
...
...
src/Features/Core/Portable/SolutionCrawler/WorkCoordinator.NormalPriorityProcessor.cs
浏览文件 @
36ebc7f7
...
...
@@ -531,7 +531,7 @@ private async Task ResetStatesAsync()
_currentSnapshotVersionTrackingSet
.
Clear
();
_processingSolution
=
currentSolution
;
await
RunAnalyzersAsync
(
this
.
Analyzers
,
currentSolution
,
(
a
,
s
,
c
)
=>
a
.
NewSolutionSnapshotAsync
(
s
,
c
),
this
.
CancellationToken
).
ConfigureAwait
(
false
);
foreach
(
var
id
in
this
.
Processor
.
GetOpenDocumentIds
())
...
...
src/VisualStudio/CSharp/Test/CSharpVisualStudioTest.csproj
浏览文件 @
36ebc7f7
...
...
@@ -103,9 +103,8 @@
<ReferenceOutputAssembly>
false
</ReferenceOutputAssembly>
</ProjectReference>
<ProjectReference
Include=
"..\..\..\Features\Core\Portable\Features.csproj"
>
<Project>
{
EDC68A0E-C68D-4A74-91B7-BF38EC
909888}
</Project>
<Project>
{
edc68a0e-c68d-4a74-91b7-bf38ec
909888}
</Project>
<Name>
Features
</Name>
<ReferenceOutputAssembly>
false
</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"
>
...
...
src/VisualStudio/CSharp/Test/PersistentStorage/SolutionSizeTests.cs
浏览文件 @
36ebc7f7
...
...
@@ -3,6 +3,7 @@
using
System.Linq
;
using
System.Threading
;
using
System.Threading.Tasks
;
using
Microsoft.CodeAnalysis.SolutionCrawler
;
using
Microsoft.CodeAnalysis.Text
;
using
Microsoft.VisualStudio.LanguageServices.Implementation.SolutionSize
;
using
Xunit
;
...
...
@@ -46,7 +47,7 @@ public async Task Test_SolutionSize_Update()
var
text
=
SourceText
.
From
(
new
string
(
'2'
,
1000
));
var
newDocument
=
document
.
WithText
(
text
);
await
analyzer
.
AnalyzeSyntaxAsync
(
newDocument
,
CancellationToken
.
None
);
await
analyzer
.
AnalyzeSyntaxAsync
(
newDocument
,
InvocationReasons
.
DocumentChanged
,
CancellationToken
.
None
);
var
size
=
analyzer
.
GetSolutionSize
(
solution
.
Id
);
Assert
.
Equal
(
expected
-
length
+
text
.
Length
,
size
);
...
...
@@ -78,7 +79,7 @@ private static async Task AddSolutionAsync(SolutionSizeTracker.IncrementalAnalyz
{
foreach
(
var
document
in
solution
.
Projects
.
SelectMany
(
p
=>
p
.
Documents
))
{
await
analyzer
.
AnalyzeSyntaxAsync
(
document
,
CancellationToken
.
None
);
await
analyzer
.
AnalyzeSyntaxAsync
(
document
,
InvocationReasons
.
Empty
,
CancellationToken
.
None
);
}
}
...
...
src/VisualStudio/Core/Def/Implementation/SolutionSize/SolutionSizeTracker.cs
浏览文件 @
36ebc7f7
// 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
;
using
System.Collections.Concurrent
;
using
System.Composition
;
using
System.Threading
;
...
...
src/VisualStudio/Core/Impl/CodeModel/CodeModelIncrementalAnalyzer.cs
浏览文件 @
36ebc7f7
...
...
@@ -55,7 +55,7 @@ public Analyzer(IForegroundNotificationService notificationService, IAsynchronou
_workspace
=
workspace
;
}
public
Task
AnalyzeSyntaxAsync
(
Document
document
,
CancellationToken
cancellationToken
)
public
Task
AnalyzeSyntaxAsync
(
Document
document
,
InvocationReasons
reasons
,
CancellationToken
cancellationToken
)
{
FireEvents
(
document
.
Id
,
cancellationToken
);
...
...
@@ -124,12 +124,12 @@ public bool NeedsReanalysisOnOptionChanged(object sender, OptionChangedEventArgs
return
false
;
}
public
Task
AnalyzeDocumentAsync
(
Document
document
,
SyntaxNode
bodyOpt
,
CancellationToken
cancellationToken
)
public
Task
AnalyzeDocumentAsync
(
Document
document
,
SyntaxNode
bodyOpt
,
InvocationReasons
reasons
,
CancellationToken
cancellationToken
)
{
return
SpecializedTasks
.
EmptyTask
;
}
public
Task
AnalyzeProjectAsync
(
Project
project
,
bool
semanticsChanged
,
CancellationToken
cancellationToken
)
public
Task
AnalyzeProjectAsync
(
Project
project
,
bool
semanticsChanged
,
InvocationReasons
reasons
,
CancellationToken
cancellationToken
)
{
return
SpecializedTasks
.
EmptyTask
;
}
...
...
src/VisualStudio/Core/Test/Diagnostics/DefaultDiagnosticUpdateSourceTests.vb
浏览文件 @
36ebc7f7
...
...
@@ -11,6 +11,7 @@ Imports Microsoft.CodeAnalysis.Editor.UnitTests.Diagnostics
Imports
Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces
Imports
Microsoft.CodeAnalysis.Options
Imports
Microsoft.CodeAnalysis.Shared.TestHooks
Imports
Microsoft.CodeAnalysis.SolutionCrawler
Imports
Microsoft.CodeAnalysis.Text.Shared.Extensions
Imports
Microsoft.VisualStudio.LanguageServices.Implementation.Diagnostics
Imports
Microsoft.VisualStudio.Text.Tagging
...
...
@@ -47,7 +48,7 @@ class 123 { }
Dim
tagger
=
provider
.
CreateTagger
(
Of
IErrorTag
)(
buffer
)
Using
disposable
=
TryCast
(
tagger
,
IDisposable
)
Dim
analyzer
=
miscService
.
CreateIncrementalAnalyzer
(
workspace
)
Await
analyzer
.
AnalyzeSyntaxAsync
(
workspace
.
CurrentSolution
.
Projects
.
First
().
Documents
.
First
(),
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeSyntaxAsync
(
workspace
.
CurrentSolution
.
Projects
.
First
().
Documents
.
First
(),
InvocationReasons
.
Empty
,
CancellationToken
.
None
)
Await
listener
.
CreateWaitTask
()
...
...
@@ -87,8 +88,8 @@ class A
Dim
document
=
workspace
.
CurrentSolution
.
Projects
.
First
().
Documents
.
First
()
Dim
analyzer
=
miscService
.
CreateIncrementalAnalyzer
(
workspace
)
Await
analyzer
.
AnalyzeSyntaxAsync
(
document
,
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeDocumentAsync
(
document
,
Nothing
,
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeSyntaxAsync
(
document
,
InvocationReasons
.
Empty
,
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeDocumentAsync
(
document
,
Nothing
,
InvocationReasons
.
Empty
,
CancellationToken
.
None
)
Await
listener
.
CreateWaitTask
()
...
...
@@ -124,8 +125,8 @@ class A
Dim
document
=
workspace
.
CurrentSolution
.
Projects
.
First
().
Documents
.
First
()
Dim
analyzer
=
miscService
.
CreateIncrementalAnalyzer
(
workspace
)
Await
analyzer
.
AnalyzeSyntaxAsync
(
document
,
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeDocumentAsync
(
document
,
Nothing
,
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeSyntaxAsync
(
document
,
InvocationReasons
.
Empty
,
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeDocumentAsync
(
document
,
Nothing
,
InvocationReasons
.
Empty
,
CancellationToken
.
None
)
Await
listener
.
CreateWaitTask
()
...
...
@@ -161,8 +162,8 @@ class A
Dim
document
=
workspace
.
CurrentSolution
.
Projects
.
First
().
Documents
.
First
()
Dim
analyzer
=
miscService
.
CreateIncrementalAnalyzer
(
workspace
)
Await
analyzer
.
AnalyzeSyntaxAsync
(
document
,
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeDocumentAsync
(
document
,
Nothing
,
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeSyntaxAsync
(
document
,
InvocationReasons
.
Empty
,
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeDocumentAsync
(
document
,
Nothing
,
InvocationReasons
.
Empty
,
CancellationToken
.
None
)
Await
listener
.
CreateWaitTask
()
...
...
@@ -198,8 +199,8 @@ class A
Dim
document
=
workspace
.
CurrentSolution
.
Projects
.
First
().
Documents
.
First
()
Dim
analyzer
=
miscService
.
CreateIncrementalAnalyzer
(
workspace
)
Await
analyzer
.
AnalyzeSyntaxAsync
(
document
,
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeDocumentAsync
(
document
,
Nothing
,
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeSyntaxAsync
(
document
,
InvocationReasons
.
Empty
,
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeDocumentAsync
(
document
,
Nothing
,
InvocationReasons
.
Empty
,
CancellationToken
.
None
)
analyzer
.
RemoveDocument
(
document
.
Id
)
Await
listener
.
CreateWaitTask
()
...
...
@@ -227,7 +228,7 @@ class 123 { }
End
Sub
Dim
analyzer
=
miscService
.
CreateIncrementalAnalyzer
(
workspace
)
Await
analyzer
.
AnalyzeSyntaxAsync
(
workspace
.
CurrentSolution
.
Projects
.
First
().
Documents
.
First
(),
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeSyntaxAsync
(
workspace
.
CurrentSolution
.
Projects
.
First
().
Documents
.
First
(),
InvocationReasons
.
Empty
,
CancellationToken
.
None
)
Assert
.
Equal
(
PredefinedBuildTools
.
Live
,
buildTool
)
End
Using
...
...
@@ -252,7 +253,7 @@ End Class
End
Sub
Dim
analyzer
=
miscService
.
CreateIncrementalAnalyzer
(
workspace
)
Await
analyzer
.
AnalyzeSyntaxAsync
(
workspace
.
CurrentSolution
.
Projects
.
First
().
Documents
.
First
(),
CancellationToken
.
None
)
Await
analyzer
.
AnalyzeSyntaxAsync
(
workspace
.
CurrentSolution
.
Projects
.
First
().
Documents
.
First
(),
InvocationReasons
.
Empty
,
CancellationToken
.
None
)
Assert
.
Equal
(
PredefinedBuildTools
.
Live
,
buildTool
)
End
Using
...
...
src/
Featur
es/Core/Portable/SolutionCrawler/InvocationReasons.cs
→
src/
Workspac
es/Core/Portable/SolutionCrawler/InvocationReasons.cs
浏览文件 @
36ebc7f7
文件已移动
src/
Featur
es/Core/Portable/SolutionCrawler/InvocationReasons_Constants.cs
→
src/
Workspac
es/Core/Portable/SolutionCrawler/InvocationReasons_Constants.cs
浏览文件 @
36ebc7f7
文件已移动
src/
Featur
es/Core/Portable/SolutionCrawler/PredefinedInvocationReasons.cs
→
src/
Workspac
es/Core/Portable/SolutionCrawler/PredefinedInvocationReasons.cs
浏览文件 @
36ebc7f7
文件已移动
src/Workspaces/Core/Portable/Workspaces.csproj
浏览文件 @
36ebc7f7
...
...
@@ -350,6 +350,8 @@
<Compile
Include=
"SolutionCrawler\IIncrementalAnalyzer.cs"
/>
<Compile
Include=
"SolutionCrawler\IIncrementalAnalyzerProvider.cs"
/>
<Compile
Include=
"SolutionCrawler\IncrementalAnalyzerProviderMetadata.cs"
/>
<Compile
Include=
"SolutionCrawler\InvocationReasons.cs"
/>
<Compile
Include=
"SolutionCrawler\InvocationReasons_Constants.cs"
/>
<Compile
Include=
"SolutionCrawler\ISolutionCrawlerRegistrationService.cs"
/>
<Compile
Include=
"Diagnostics\IWorkspaceVenusSpanMappingService.cs"
/>
<Compile
Include=
"Diagnostics\WellKnownDiagnosticPropertyNames.cs"
/>
...
...
@@ -414,6 +416,7 @@
<Compile
Include=
"Options\DocumentOptionSet.cs"
/>
<Compile
Include=
"Options\OptionSet.cs"
/>
<Compile
Include=
"Packaging\IPackageInstallerService.cs"
/>
<Compile
Include=
"SolutionCrawler\PredefinedInvocationReasons.cs"
/>
<Compile
Include=
"SymbolSearch\ISymbolSearchService.cs"
/>
<Compile
Include=
"FindSymbols\SymbolTree\ISymbolTreeInfoCacheService.cs"
/>
<Compile
Include=
"FindSymbols\FindReferences\MetadataUnifyingEquivalenceComparer.cs"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录