36 references to Attribute
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
AddResponseTypeAttributeCodeFixAction.cs (1)
248return SyntaxFactory.Attribute(
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.Semantic.UnitTests (1)
Semantics\SyntaxTreeRootTests.cs (1)
55var arbitraryTree = SyntaxFactory.SyntaxTree(SyntaxFactory.Attribute(SyntaxFactory.IdentifierName("Wooh")));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
3616var attributeSyntax = SyntaxFactory.Attribute(SyntaxFactory.IdentifierName("Category"));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Syntax\SyntaxListTests.cs (2)
251? [SyntaxFactory.Attribute(SyntaxFactory.ParseName("Attr"))] 253SyntaxFactory.Attribute(SyntaxFactory.ParseName("Attr")))),
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (3)
CodeGeneration\AddAttributesTests.cs (1)
45[Attribute(
Formatting\FormattingElasticTriviaTests.cs (2)
40[Attribute( 58Attribute(
Microsoft.Interop.ComInterfaceGenerator (6)
ComClassGenerator.cs (1)
65Attribute(
ComInterfaceGenerator.cs (3)
242Attribute( 581.AddAttributeLists(AttributeList(SingletonSeparatedList(Attribute(NameSyntaxes.System_Runtime_InteropServices_DynamicInterfaceCastableImplementationAttribute)))); 843Attribute(NameSyntaxes.System_Runtime_CompilerServices_FixedAddressValueTypeAttribute)))),
VirtualMethodPointerStubGenerator.cs (1)
151AttributeSyntax unmanagedCallersOnlyAttribute = Attribute(
VtableIndexStubGenerator.cs (1)
433.AddAttributeLists(AttributeList(SingletonSeparatedList(Attribute(NameSyntaxes.System_Runtime_InteropServices_DynamicInterfaceCastableImplementationAttribute)))));
Microsoft.Interop.JavaScript.JSImportGenerator (9)
JSExportGenerator.cs (7)
147Attribute(IdentifierName(Constants.DebuggerNonUserCodeAttribute)))))) 242Attribute(IdentifierName(Constants.ThreadStaticGlobal)))))); 256Attribute( 259Attribute( 299Attribute(IdentifierName(Constants.CompilerGeneratedAttributeGlobal))) 375AttributeListSyntax registrationAttribute = AttributeList(SingletonSeparatedList(Attribute(IdentifierName(Constants.DynamicDependencyAttributeGlobal)) 436Attribute(IdentifierName(Constants.DebuggerNonUserCodeAttribute))))));
JSImportGenerator.cs (2)
119Attribute(IdentifierName(Constants.DebuggerNonUserCodeAttribute)))))) 359Attribute(IdentifierName(Constants.DebuggerNonUserCodeAttribute))))));
Microsoft.Interop.LibraryImportGenerator (4)
LibraryImportGenerator.cs (4)
120attributes.Add(Attribute(NameSyntaxes.SuppressGCTransitionAttribute)); 124AttributeSyntax unmanagedCallConvSyntax = Attribute(NameSyntaxes.UnmanagedCallConvAttribute); 150Attribute(NameSyntaxes.DefaultDllImportSearchPathsAttribute).AddArgumentListArguments( 158attributes.Add(Attribute(NameSyntaxes.WasmImportLinkageAttribute));
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
96Attribute(NameSyntaxes.DefaultDllImportSearchPathsAttribute).AddArgumentListArguments(
Microsoft.Interop.SourceGeneration (3)
Marshalling\MarshallingGeneratorExtensions.cs (2)
118rehydratedAttributes.Add(Attribute(IdentifierName(TypeNames.System_Runtime_InteropServices_InAttribute))); 122rehydratedAttributes.Add(Attribute(IdentifierName(TypeNames.System_Runtime_InteropServices_OutAttribute)));
SignatureContext.cs (1)
90Attribute(NameSyntaxes.System_Runtime_CompilerServices_SkipLocalsInitAttribute))));