58 references to SkipScoped
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_Lambda.cs (1)
297syntax = syntax.SkipScoped(out _).SkipRefInLocalOrReturn(diagnostics, out RefKind refKind);
Binder\Binder_Statements.cs (1)
804TypeWithAnnotations declType = BindTypeOrVarKeyword(typeSyntax.SkipScoped(out _).SkipRef(), diagnostics, out isVar, out alias);
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)
268TypeWithAnnotations 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)
93typeSyntax = typeSyntax.SkipScoped(out isScoped); 178return closestTypeSyntax.SkipScoped(out _).SkipRef().IsVar 210return typeSyntax?.SkipScoped(out _).SkipRef().IsVar != false && kind != LocalDeclarationKind.DeclarationExpressionVariable 349TypeSyntax typeSyntax = _typeSyntax.SkipScoped(out _).SkipRef(); 396declType = typeBinder.BindTypeOrVarKeyword(_typeSyntax.SkipScoped(out _).SkipRef(), BindingDiagnosticBag.Discarded, out isVar);
Symbols\Source\SourcePropertySymbol.cs (1)
576typeSyntax = typeSyntax.SkipScoped(out _).SkipRef();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (45)
Semantics\RefFieldTests.cs (45)
12178Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12179Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12184type = type.SkipScoped(out _); 12248type = type.SkipScoped(out _); 12312Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12313Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12318type = type.SkipScoped(out _); 12501Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12502Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12507type = type.SkipScoped(out _); 12533Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12534Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12539type = type.SkipScoped(out _); 12687type = type.SkipScoped(out _); 12715type = type.SkipScoped(out _); 12912Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12913Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12918type = type.SkipScoped(out _); 12946Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12947Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12952type = type.SkipScoped(out _); 13094type = type.SkipScoped(out _); 13122type = type.SkipScoped(out _); 13560type = type.SkipScoped(out _); 13624type = type.SkipScoped(out _); 13701type = type.SkipScoped(out _); 13771type = type.SkipScoped(out _); 14465Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 14507Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 14712Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 14713Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 14718type = type.SkipScoped(out _); 14962type = type.SkipScoped(out _); 14990type = type.SkipScoped(out _); 15253type = type.SkipScoped(out _); 27663Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 27664Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 27669type = type.SkipScoped(out _); 27753Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 27754Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 27759type = type.SkipScoped(out _); 28026type = type.SkipScoped(out _); 28086type = type.SkipScoped(out _); 28305Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 28353Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString());