49 references to LookupPosition
Microsoft.CodeAnalysis.CSharp (49)
Binder\BinderFactory.BinderFactoryVisitor.cs (25)
137if (!LookupPosition.IsInMethodDeclaration(_position, methodDecl)) 143if (LookupPosition.IsInBody(_position, methodDecl)) 147else if (LookupPosition.IsInMethodTypeParameterScope(_position, methodDecl)) 199if (!LookupPosition.IsInMethodDeclaration(_position, parent)) 204bool inBodyOrInitializer = LookupPosition.IsInConstructorParameterScope(_position, parent); 238if (!LookupPosition.IsInBody(_position, parent)) 265if (!LookupPosition.IsInMethodDeclaration(_position, parent)) 270bool inBody = LookupPosition.IsInBody(_position, parent); 333if (!LookupPosition.IsInMethodDeclaration(_position, parent)) 338bool inBody = LookupPosition.IsInBody(_position, parent); 390if (!LookupPosition.IsInBody(_position, parent)) 400if (!LookupPosition.IsInBody(_position, parent)) 664if (!LookupPosition.IsInDelegateDeclaration(_position, parent)) 697bool inBody = LookupPosition.IsBetweenTokens(_position, parent.OpenBraceToken, parent.CloseBraceToken) || 698LookupPosition.IsInAttributeSpecification(_position, parent.AttributeLists); 727if (!LookupPosition.IsInTypeDeclaration(_position, parent)) 738LookupPosition.IsBetweenTokens(_position, parent.OpenBraceToken, parent.CloseBraceToken)) 742else if (LookupPosition.IsInAttributeSpecification(_position, parent.AttributeLists)) 746else if (LookupPosition.IsInTypeParameterList(_position, parent)) 750else if (LookupPosition.IsBetweenTokens(_position, parent.Keyword, parent.OpenBraceToken)) 824if (!LookupPosition.IsInNamespaceDeclaration(_position, parent)) 831bool inBody = LookupPosition.IsBetweenTokens(_position, parent.OpenBraceToken, parent.CloseBraceToken); 840if (!LookupPosition.IsInNamespaceDeclaration(_position, parent)) 1132if (!LookupPosition.IsInXmlAttributeValue(_position, parent)) 1168if (!LookupPosition.IsInXmlAttributeValue(_position, parent))
Compilation\CSharpSemanticModel.cs (1)
880var binder = memberModel.GetEnclosingBinder(LookupPosition.IsBetweenTokens(position, argumentList.OpenParenToken, argumentList.CloseParenToken) ? position : argumentList.OpenParenToken.SpanStart);
Compilation\MemberSemanticModel.cs (16)
243if (LookupPosition.IsInStatementScope(position, stmt)) 255if (LookupPosition.IsInLocalFunctionTypeParameterScope(position, localFunction)) 264if (LookupPosition.IsInCatchBlockScope(position, (CatchClauseSyntax)current)) 271if (LookupPosition.IsInCatchFilterScope(position, (CatchFilterClauseSyntax)current)) 278if (LookupPosition.IsInAnonymousFunctionOrQuery(position, current)) 286LookupPosition.IsBetweenTokens( 295if (LookupPosition.IsInSwitchSectionScope(position, (SwitchSectionSyntax)current)) 304if (LookupPosition.IsBetweenTokens(position, argList.OpenParenToken, argList.CloseParenToken)) 347if (LookupPosition.IsBetweenTokens(position, checkedExpression.OpenParenToken, checkedExpression.CloseParenToken)) 391if (LookupPosition.IsBetweenTokens(position, switchStmt.SwitchKeyword, switchStmt.OpenBraceToken)) 400if (LookupPosition.IsBetweenTokens(position, forStmt.SecondSemicolonToken, forStmt.CloseParenToken) && 406else if (LookupPosition.IsBetweenTokens(position, forStmt.FirstSemicolonToken, LookupPosition.GetFirstExcludedToken(forStmt)) && 418if (LookupPosition.IsBetweenTokens(position, start, foreachStmt.Statement.GetFirstToken())) 1387if (!LookupPosition.IsInAnonymousFunctionOrQuery(position, current)) 1900Debug.Assert(LookupPosition.IsInAnonymousFunctionOrQuery(position, containingLambda));
Compilation\SyntaxTreeSemanticModel.cs (6)
794outsideMemberDecl = !LookupPosition.IsInBody(position, (AccessorDeclarationSyntax)memberDecl); 799!LookupPosition.IsInConstructorParameterScope(position, constructorDecl) && 800!LookupPosition.IsInParameterList(position, constructorDecl); 814outsideMemberDecl = argumentList is null || !LookupPosition.IsBetweenTokens(position, argumentList.OpenParenToken, argumentList.CloseParenToken); 824!LookupPosition.IsInBody(position, methodDecl) && 825!LookupPosition.IsInParameterList(position, methodDecl);
Syntax\CSharpSyntaxNode.cs (1)
402return LookupPosition.IsInXmlAttributeValue(position, (XmlAttributeSyntax)curr)