30 references to CreateAsync
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
202
var semanticDocument = await SemanticDocument.
CreateAsync
(
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
ExtractMethod\ExtractMethodBase.cs (2)
167
var semanticDocument = await SemanticDocument.
CreateAsync
(document, CancellationToken.None);
192
var semanticDocument = await SemanticDocument.
CreateAsync
(document, CancellationToken.None);
Microsoft.CodeAnalysis.CSharp.Features (5)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
1072
return await SemanticDocument.
CreateAsync
(newDocument, cancellationToken).ConfigureAwait(false);
ExtractMethod\CSharpSelectionResult.cs (1)
38
var newDocument = await SemanticDocument.
CreateAsync
(document.Document.WithSyntaxRoot(AddAnnotations(
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
52
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
68
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (1)
53
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (20)
ChangeSignature\AbstractChangeSignatureService.cs (2)
185
var semanticDocument = await SemanticDocument.
CreateAsync
(declarationDocument, cancellationToken).ConfigureAwait(false);
388
var semanticDocument = await SemanticDocument.
CreateAsync
(doc, cancellationToken).ConfigureAwait(false);
CodeRefactorings\MoveType\AbstractMoveTypeService.cs (2)
51
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
62
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
ExtractMethod\AbstractExtractMethodService.cs (1)
36
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
GenerateType\AbstractGenerateTypeService.CodeAction.cs (2)
67
var semanticDocument = await SemanticDocument.
CreateAsync
(_document, cancellationToken).ConfigureAwait(false);
178
var semanticDocument = await SemanticDocument.
CreateAsync
(_document, cancellationToken).ConfigureAwait(false);
GenerateType\AbstractGenerateTypeService.cs (1)
73
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
IntroduceVariable\AbstractIntroduceVariableService.cs (3)
70
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
427
var newSemanticDocument = await SemanticDocument.
CreateAsync
(newDocument, cancellationToken).ConfigureAwait(false);
457
newSemanticDocument = await SemanticDocument.
CreateAsync
(newDocument, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (2)
112
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
189
var semanticDocument = await SemanticDocument.
CreateAsync
(rewrittenDocument, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (1)
84
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.cs (1)
33
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.cs (1)
29
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.cs (1)
34
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.cs (1)
31
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.cs (1)
35
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
39
var semanticDocument = await SemanticDocument.
CreateAsync
(document, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
75
var semanticDocument = await SemanticDocument.
CreateAsync
(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SemanticDocument.cs (1)
29
return await
CreateAsync
(newDocument, cancellationToken).ConfigureAwait(false);