70 references to SkipScoped
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder_Deconstruct.cs (1)
752var declType = BindVariableTypeWithAnnotations(component.Designation, diagnostics, component.Type.SkipScoped(out _).SkipRef(), ref isConst, out isVar, out alias);
Binder\Binder_Expressions.cs (1)
938var declType = BindVariableTypeWithAnnotations(node.Designation, diagnostics, node.Type.SkipScoped(out _).SkipRef(), ref isConst, out isVar, out alias);
Binder\Binder_Lambda.cs (1)
296syntax = syntax.SkipScoped(out _).SkipRefInLocalOrReturn(diagnostics, out RefKind refKind);
Binder\Binder_Statements.cs (1)
799TypeWithAnnotations declType = BindTypeOrVarKeyword(typeSyntax.SkipScoped(out _).SkipRef(), diagnostics, out isVar, out alias);
Binder\ForLoopBinder.cs (1)
75var type = _syntax.Declaration.Type.SkipScoped(out _);
BoundTree\VariablePendingInference.cs (1)
70(typeOrDesignationSyntax is TypeSyntax typeSyntax ? typeSyntax.SkipScoped(out _).SkipRef() : typeOrDesignationSyntax).Location);
Symbols\Source\GlobalExpressionVariable.cs (2)
55return (typeSyntax == null || typeSyntax.SkipScoped(out _).SkipRef().IsVar) 93type = binder.BindTypeOrVarKeyword(typeSyntax.SkipScoped(out _).SkipRef(), diagnostics, out isVar);
Symbols\Source\LocalFunctionSymbol.cs (1)
258TypeWithAnnotations returnType = WithTypeParametersBinder.BindType(returnTypeSyntax.SkipScoped(out _).SkipRef(), diagnostics);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
56returnTypeSyntax = returnTypeSyntax.SkipScoped(out _).SkipRefInLocalOrReturn(diagnostics, out RefKind refKind);
Symbols\Source\SourceLocalSymbol.cs (5)
62typeSyntax = typeSyntax.SkipScoped(out isScoped); 147return closestTypeSyntax.SkipScoped(out _).SkipRef().IsVar 178return typeSyntax?.SkipScoped(out _).SkipRef().IsVar != false && kind != LocalDeclarationKind.DeclarationExpressionVariable 319TypeSyntax typeSyntax = _typeSyntax.SkipScoped(out _).SkipRef(); 355declType = typeBinder.BindTypeOrVarKeyword(_typeSyntax.SkipScoped(out _).SkipRef(), diagnostics, out isVar);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5512_ = fieldSyntax.Declaration.Type.SkipScoped(out _).SkipRefInField(out var refKind);
Symbols\Source\SourceMemberFieldSymbol.cs (4)
499var typeOnly = typeSyntax.SkipScoped(out _).SkipRefInField(out refKind); 504MessageID.IDS_FeatureRefFields.CheckFeatureAvailability(diagnostics, compilation, typeSyntax.SkipScoped(out _).Location); 512diagnostics.Add(ErrorCode.ERR_RefFieldCannotReferToRefStruct, typeSyntax.SkipScoped(out _).Location); 518type = binder.BindTypeOrVarKeyword(typeSyntax.SkipScoped(out _).SkipRefInField(out RefKind refKindToAssert), diagnostics, out isVar);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
95methodKind, refKind: syntax.ReturnType.SkipScoped(out _).GetRefKindInLocalOrReturn(diagnostics), 136returnTypeSyntax = returnTypeSyntax.SkipScoped(out _).SkipRef();
Symbols\Source\SourcePropertySymbol.cs (2)
138syntax.Type.SkipScoped(out _).GetRefKindInLocalOrReturn(diagnostics), 577typeSyntax = typeSyntax.SkipScoped(out _).SkipRef();
Syntax\SyntaxFacts.cs (1)
456return node == parent?.Type.SkipScoped(out _).SkipRef();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (45)
Semantics\RefFieldTests.cs (45)
12143Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12144Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12149type = type.SkipScoped(out _); 12213type = type.SkipScoped(out _); 12277Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12278Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12283type = type.SkipScoped(out _); 12466Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12467Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12472type = type.SkipScoped(out _); 12498Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12499Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12504type = type.SkipScoped(out _); 12652type = type.SkipScoped(out _); 12680type = type.SkipScoped(out _); 12877Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12878Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12883type = type.SkipScoped(out _); 12911Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12912Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12917type = type.SkipScoped(out _); 13059type = type.SkipScoped(out _); 13087type = type.SkipScoped(out _); 13525type = type.SkipScoped(out _); 13589type = type.SkipScoped(out _); 13666type = type.SkipScoped(out _); 13736type = type.SkipScoped(out _); 14430Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 14472Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 14677Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 14678Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 14683type = type.SkipScoped(out _); 14927type = type.SkipScoped(out _); 14955type = type.SkipScoped(out _); 15218type = type.SkipScoped(out _); 27676Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 27677Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 27682type = type.SkipScoped(out _); 27766Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 27767Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 27772type = type.SkipScoped(out _); 28039type = type.SkipScoped(out _); 28099type = type.SkipScoped(out _); 28318Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 28366Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString());