12 references to UsingDirective
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
AddResponseTypeAttributeCodeFixAction.cs (1)
120root = compilationUnit.AddUsings(SyntaxFactory.UsingDirective(SyntaxFactory.ParseName(@namespace)));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
167return UsingDirective(name);
Microsoft.CodeAnalysis.CSharp.Features (4)
AddImport\CSharpAddImportFeatureService.cs (1)
389var usingDirective = UsingDirective(
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
347return compilationUnit.AddUsings(SyntaxFactory.UsingDirective(SyntaxFactory.ParseName("System.Linq")));
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
94directives.Add(UsingDirective(name).WithAdditionalAnnotations(annotation));
GenerateType\CSharpGenerateTypeService.cs (1)
759var usingDirective = SyntaxFactory.UsingDirective(SyntaxFactory.ParseName(includeUsingsOrImports));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\SyntaxTreeRootTests.cs (1)
26var node = SyntaxFactory.UsingDirective(SyntaxFactory.IdentifierName("Blah"));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
155=> SyntaxFactory.UsingDirective((NameSyntax)name);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
167return UsingDirective(name);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (1)
1803return SyntaxFactory.UsingDirective(nameSyntax);
Snippets\CSharpSnippetExpansionLanguageHelper.cs (1)
144candidateUsing = SyntaxFactory.UsingDirective(SyntaxFactory.ParseName(namespaceToImport))
System.Windows.Forms.Analyzers.CodeFixes.CSharp (1)
System\Windows\Forms\CSharp\CodeFixes\AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.cs (1)
139.UsingDirective(SyntaxFactory.ParseName(SystemComponentModelName));