23 references to ScopedRef
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SyntaxGeneratorInternalExtensions\SyntaxGeneratorInternal.cs (1)
113=> symbol is { RefKind: RefKind.Ref or RefKind.In or RefKind.RefReadOnlyParameter, ScopedKind: ScopedKind.ScopedRef }
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SyntaxGeneratorInternalExtensions\SyntaxGeneratorInternal.cs (1)
113=> symbol is { RefKind: RefKind.Ref or RefKind.In or RefKind.RefReadOnlyParameter, ScopedKind: ScopedKind.ScopedRef }
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SyntaxGeneratorInternalExtensions\SyntaxGeneratorInternal.cs (1)
113=> symbol is { RefKind: RefKind.Ref or RefKind.In or RefKind.RefReadOnlyParameter, ScopedKind: ScopedKind.ScopedRef }
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder.ValueChecks.cs (3)
1543{ EffectiveScope: ScopedKind.ScopedRef } => SafeContext.CurrentMethod, 1576var isRefScoped = parameterSymbol.EffectiveScope == ScopedKind.ScopedRef; 3446return ScopedKind.ScopedRef;
Binder\RefSafetyAnalysis.cs (1)
511refEscapeScope = scopedModifier == ScopedKind.ScopedRef ?
BoundTree\UnboundLambda.cs (2)
707scope = ScopedKind.ScopedRef; 788if (((DeclaredScope(i) == ScopedKind.None && parameterScopesBuilder[i] == ScopedKind.ScopedRef) ||
SymbolDisplay\SymbolDisplayVisitor.cs (1)
245if (symbol.ScopedKind == ScopedKind.ScopedRef)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
851if (symbol.ScopedKind == ScopedKind.ScopedRef &&
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
318(ScopedKind.ScopedRef, true) => true,
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
36=> ParameterHelpers.IsRefScopedByDefault(this) ? ScopedKind.ScopedRef : ScopedKind.None;
Symbols\Metadata\PE\PEParameterSymbol.cs (2)
335scope = ScopedKind.ScopedRef; 348scope = ScopedKind.ScopedRef;
Symbols\SignatureOnlyParameterSymbol.cs (1)
61=> ParameterHelpers.IsRefScopedByDefault(this) ? ScopedKind.ScopedRef : ScopedKind.None;
Symbols\Source\ParameterHelpers.cs (1)
1200scope = (refKind == RefKind.None) ? ScopedKind.ScopedValue : ScopedKind.ScopedRef;
Symbols\Source\SourceLocalSymbol.cs (1)
101? isScoped ? ScopedKind.ScopedRef : ScopedKind.None
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1427p is { EffectiveScope: ScopedKind.None, RefKind: RefKind.Ref } or { EffectiveScope: ScopedKind.ScopedRef, RefKind: RefKind.Out } &&
Symbols\Source\SourceParameterSymbol.cs (1)
243return ScopedKind.ScopedRef;
Symbols\Source\ThisParameterSymbol.cs (1)
192var scope = _containingType.IsStructType() ? ScopedKind.ScopedRef : ScopedKind.None;
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SyntaxGeneratorInternalExtensions\SyntaxGeneratorInternal.cs (1)
113=> symbol is { RefKind: RefKind.Ref or RefKind.In or RefKind.RefReadOnlyParameter, ScopedKind: ScopedKind.ScopedRef }
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SyntaxGeneratorInternalExtensions\SyntaxGeneratorInternal.cs (1)
113=> symbol is { RefKind: RefKind.Ref or RefKind.In or RefKind.RefReadOnlyParameter, ScopedKind: ScopedKind.ScopedRef }