64 references to ParseName
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
AddResponseTypeAttributeCodeFixAction.cs (4)
120root = compilationUnit.AddUsings(SyntaxFactory.UsingDirective(SyntaxFactory.ParseName(@namespace))); 207SyntaxFactory.ParseName(ApiSymbolNames.ProducesResponseTypeAttribute) 223SyntaxFactory.ParseName(ApiSymbolNames.ProducesResponseTypeAttribute) 249SyntaxFactory.ParseName(ApiSymbolNames.ProducesDefaultResponseTypeAttribute)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
239var name = SyntaxFactory.ParseName(syntaxTree.GetText(cancellationToken).ToString(TextSpan.FromBounds(genericIdentifier.SpanStart, lastToken.Span.End)));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (3)
112return FileScopedNamespaceDeclaration(ParseName(name)).WithUsings(usings); 115return NamespaceDeclaration(ParseName(name)).WithUsings(usings); 178: ParseName(symbol.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Attributes\AttributeTests.cs (5)
53var typeForwardedTo = SyntaxFactory.Attribute(SyntaxFactory.ParseName("TypeForwardedTo")); 54var typeIdentifier = SyntaxFactory.Attribute(SyntaxFactory.ParseName("TypeIdentifier")); 64var alias1 = SyntaxFactory.Attribute(SyntaxFactory.ParseName("alias1")); 74var alias2 = SyntaxFactory.Attribute(SyntaxFactory.ParseName("alias2")); 81var alias3 = SyntaxFactory.Attribute(SyntaxFactory.ParseName("alias3"));
Microsoft.CodeAnalysis.CSharp.Features (4)
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
347return compilationUnit.AddUsings(SyntaxFactory.UsingDirective(SyntaxFactory.ParseName("System.Linq")));
ExtractMethod\CSharpMethodExtractor.Analyzer.cs (1)
41var info = model.GetSpeculativeTypeInfo(SelectionResult.FinalSpan.Start, SyntaxFactory.ParseName(symbol.Name), SpeculativeBindingOption.BindAsExpression);
FullyQualify\CSharpFullyQualifyService.cs (1)
48var qualifiedName = SyntaxFactory.QualifiedName(SyntaxFactory.ParseName(containerName), newName)
GenerateType\CSharpGenerateTypeService.cs (1)
759var usingDirective = SyntaxFactory.UsingDirective(SyntaxFactory.ParseName(includeUsingsOrImports));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Compilation\SemanticModelAPITests.cs (5)
2800var speculatedUsingExpression = SyntaxFactory.ParseName("System.Collections"); 2815var speculatedUsingExpression = SyntaxFactory.ParseName("System.ArgumentException"); 2835var speculatedTypeExpression = SyntaxFactory.ParseName("System.ArgumentException"); 2866var speculatedTypeExpression = SyntaxFactory.ParseName("System.ArgumentException"); 2895var speculatedAliasName = SyntaxFactory.ParseName("A");
DocumentationComments\CrefTests.cs (1)
6285var speculatedName = SyntaxFactory.ParseName("b");
Symbols\Source\NullablePublicAPITests.cs (2)
4064var speculativeAttribute = SyntaxFactory.Attribute(SyntaxFactory.ParseName("A"), SyntaxFactory.ParseAttributeArgumentList("(o2)")); 4212var newAttributeUsage = SyntaxFactory.Attribute(SyntaxFactory.ParseName("Attr"), SyntaxFactory.ParseAttributeArgumentList("(Constant)"));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Parsing\NameParsingTests.cs (1)
21return SyntaxFactory.ParseName(text);
Syntax\SyntaxFactoryTests.cs (1)
33var someValidName = SyntaxFactory.ParseName("System.String");
Syntax\SyntaxListTests.cs (3)
243var declaration = SyntaxFactory.NamespaceDeclaration(SyntaxFactory.ParseName("M")); 251? [SyntaxFactory.Attribute(SyntaxFactory.ParseName("Attr"))] 253SyntaxFactory.Attribute(SyntaxFactory.ParseName("Attr")))),
Syntax\SyntaxNodeTests.cs (1)
54var qname = (QualifiedNameSyntax)SyntaxFactory.ParseName("A.B");
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Rename\CSharpRenameRewriterLanguageService.cs (1)
1130var name = SyntaxFactory.ParseName(replacementText);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
239var name = SyntaxFactory.ParseName(syntaxTree.GetText(cancellationToken).ToString(TextSpan.FromBounds(genericIdentifier.SpanStart, lastToken.Span.End)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (3)
112return FileScopedNamespaceDeclaration(ParseName(name)).WithUsings(usings); 115return NamespaceDeclaration(ParseName(name)).WithUsings(usings); 178: ParseName(symbol.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
Formatting\FormattingElasticTriviaTests.cs (2)
59ParseName("My"))], 77ParseName("My"))])],
Microsoft.Interop.ComInterfaceGenerator (3)
ComClassGenerator.cs (1)
133TypeOfExpression(ParseName(ifaceName)),
ComInterfaceGenerator.cs (1)
488ExplicitInterfaceSpecifier(ParseName(definingType.FullTypeName))));
ComMethodContext.cs (1)
114ParseName(OriginalDeclaringInterface.Info.Type.FullTypeName)))
Microsoft.Interop.SourceGeneration (16)
ContainingSyntaxContext.cs (2)
122wrappedMember = NamespaceDeclaration(ParseName(ContainingNamespace)).AddMembers(wrappedMember); 148wrappedMember = NamespaceDeclaration(ParseName(ContainingNamespace)).AddMembers(wrappedMember);
MarshalAsParser.cs (2)
45ParseName(TypeNames.System_Runtime_InteropServices_MarshalAsAttribute), 74ParseName(TypeNames.System_Runtime_InteropServices_MarshalAsAttribute),
Marshalling\DelegateMarshaller.cs (1)
84ParseName("global::System.GC.KeepAlive"),
TypeNames.cs (11)
14public static NameSyntax DllImportAttribute => _DllImportAttribute ??= ParseName(TypeNames.GlobalAlias + TypeNames.DllImportAttribute); 17public static NameSyntax LibraryImportAttribute => _LibraryImportAttribute ??= ParseName(TypeNames.GlobalAlias + TypeNames.LibraryImportAttribute); 20public static NameSyntax System_Runtime_InteropServices_DynamicInterfaceCastableImplementationAttribute => _System_Runtime_InteropServices_DynamicInterfaceCastableImplementationAttribute ??= ParseName(TypeNames.GlobalAlias + TypeNames.System_Runtime_InteropServices_DynamicInterfaceCastableImplementationAttribute); 23public static NameSyntax System_Runtime_InteropServices_MarshalAsAttribute => _System_Runtime_InteropServices_MarshalAsAttribute ??= ParseName(TypeNames.GlobalAlias + TypeNames.System_Runtime_InteropServices_MarshalAsAttribute); 26public static NameSyntax DefaultDllImportSearchPathsAttribute => _DefaultDllImportSearchPathsAttribute ??= ParseName(TypeNames.GlobalAlias + TypeNames.DefaultDllImportSearchPathsAttribute); 29public static NameSyntax SuppressGCTransitionAttribute => _SuppressGCTransitionAttribute ??= ParseName(TypeNames.GlobalAlias + TypeNames.SuppressGCTransitionAttribute); 32public static NameSyntax UnmanagedCallConvAttribute => _UnmanagedCallConvAttribute ??= ParseName(TypeNames.GlobalAlias + TypeNames.UnmanagedCallConvAttribute); 35public static NameSyntax System_Runtime_CompilerServices_SkipLocalsInitAttribute => _System_Runtime_CompilerServices_SkipLocalsInitAttribute ??= ParseName(TypeNames.GlobalAlias + TypeNames.System_Runtime_CompilerServices_SkipLocalsInitAttribute); 38public static NameSyntax System_CodeDom_Compiler_GeneratedCodeAttribute => _System_CodeDom_Compiler_GeneratedCodeAttribute ??= ParseName(TypeNames.GlobalAlias + TypeNames.System_CodeDom_Compiler_GeneratedCodeAttribute); 41public static NameSyntax UnmanagedCallersOnlyAttribute => _UnmanagedCallersOnlyAttribute ??= ParseName(TypeNames.GlobalAlias + TypeNames.UnmanagedCallersOnlyAttribute); 44public static NameSyntax WasmImportLinkageAttribute => _WasmImportLinkageAttribute ??= ParseName(TypeNames.GlobalAlias + TypeNames.WasmImportLinkageAttribute);
Microsoft.VisualStudio.LanguageServices.CSharp (5)
CodeModel\CSharpCodeModelService.cs (4)
906SyntaxFactory.ParseName(name) 915SyntaxFactory.ParseName(name) 1773name: SyntaxFactory.ParseName(name), 1794var nameSyntax = SyntaxFactory.ParseName(name);
Snippets\CSharpSnippetExpansionLanguageHelper.cs (1)
144candidateUsing = SyntaxFactory.UsingDirective(SyntaxFactory.ParseName(namespaceToImport))
System.Windows.Forms.Analyzers.CodeFixes.CSharp (2)
System\Windows\Forms\CSharp\CodeFixes\AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.cs (2)
82SyntaxFactory.ParseName(DesignerSerializationVisibilityAttributeName), 139.UsingDirective(SyntaxFactory.ParseName(SystemComponentModelName));