5 references to WithModifiers
Microsoft.CodeAnalysis.CSharp (5)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
94returnType = returnType.WithModifiers(customModifiers.ToImmutableAndFree()); 288returnTypeWithAnnotations = returnTypeWithAnnotations.WithModifiers(modifiersBuilder.ToImmutableAndFree());
Symbols\Source\SourceMemberFieldSymbol.cs (1)
600if (Interlocked.CompareExchange(ref _lazyTypeAndRefKind, new TypeAndRefKind(refKind, type.WithModifiers(this.RequiredCustomModifiers)), null) == null)
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (1)
778appendTypeWithAnnotation(signature.ReturnTypeWithAnnotations.WithModifiers([]), builder);
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
397type = type.WithModifiers(modifiers);