34 references to Expression
Microsoft.CodeAnalysis.CSharp (10)
Binder\ExpressionVariableFinder.cs (1)
200VisitNodeToBind(node.Expression);
Binder\LocalBinderFactory.cs (1)
717Visit(node.Expression, lockBinder);
Binder\LockBinder.cs (1)
30return _syntax.Expression;
Syntax.xml.Main.Generated.cs (1)
1912=> node.Update(VisitList(node.AttributeLists), VisitToken(node.LockKeyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
Syntax.xml.Syntax.Generated.cs (6)
8272if (attributeLists != this.AttributeLists || lockKeyword != this.LockKeyword || openParenToken != this.OpenParenToken || expression != this.Expression || closeParenToken != this.CloseParenToken || statement != this.Statement) 8283public new LockStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.LockKeyword, this.OpenParenToken, this.Expression, this.CloseParenToken, this.Statement); 8284public LockStatementSyntax WithLockKeyword(SyntaxToken lockKeyword) => Update(this.AttributeLists, lockKeyword, this.OpenParenToken, this.Expression, this.CloseParenToken, this.Statement); 8285public LockStatementSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(this.AttributeLists, this.LockKeyword, openParenToken, this.Expression, this.CloseParenToken, this.Statement); 8287public LockStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.AttributeLists, this.LockKeyword, this.OpenParenToken, this.Expression, closeParenToken, this.Statement); 8288public LockStatementSyntax WithStatement(StatementSyntax statement) => Update(this.AttributeLists, this.LockKeyword, this.OpenParenToken, this.Expression, this.CloseParenToken, statement);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
178(nodeParent is LockStatementSyntax lockStatement && lockStatement.Expression == node) ||
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\LockTests.cs (1)
189var lockExprInfo = model.GetSymbolInfo(lockStatement.Expression);
Microsoft.CodeAnalysis.CSharp.Features (8)
Debugging\CSharpProximityExpressionsService.RelevantExpressionsCollector.cs (1)
42=> AddExpressionTerms(node.Expression, _expressions);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
859return AreEquivalentIgnoringLambdaBodies(oldNode.Expression, newNode.Expression); 3015getTypedNodes: static n => OneOrMany.OneOrNone<SyntaxNode>(n.Expression),
EditAndContinue\SyntaxComparer.cs (2)
858distance = ComputeWeightedDistance(leftLock.Expression, leftLock.Statement, rightLock.Expression, rightLock.Statement);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
185return node.WithExpression(VisitNode(node.Expression))
Snippets\CSharpLockSnippetProvider.cs (1)
30var expression = node.Expression;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\LockTests.cs (7)
51var lockExprInfo = model.GetSymbolInfo(lockStatement.Expression); 491Assert.Null(model.GetSymbolInfo(lockStatements[0].Expression).Symbol); 492Assert.Null(model.GetTypeInfo(lockStatements[0].Expression).Type); 577Assert.Null(model.GetSymbolInfo(lockStatements[0].Expression).Symbol); 578Assert.Equal(@"System.Collections.Generic.IEnumerable<char>", model.GetTypeInfo(lockStatements[0].Expression).Type.ToDisplayString()); 700var symbolInfo = model.GetSymbolInfo(lockStatements[index - 1].Expression); 710var typeInfo = model.GetTypeInfo(lockStatements[index - 1].Expression);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Generated\Syntax.Test.xml.Generated.cs (2)
12757Assert.NotNull(node.Expression); 12760var newNode = node.WithAttributeLists(node.AttributeLists).WithLockKeyword(node.LockKeyword).WithOpenParenToken(node.OpenParenToken).WithExpression(node.Expression).WithCloseParenToken(node.CloseParenToken).WithStatement(node.Statement);
Parsing\StatementParsingTests.cs (2)
2109Assert.NotNull(ls.Expression); 2110Assert.Equal("a", ls.Expression.ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
178(nodeParent is LockStatementSyntax lockStatement && lockStatement.Expression == node) ||
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\ControlFlowGraphVerifier.cs (1)
1157if (((LockStatementSyntax)parent).Expression == syntax)
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
178(nodeParent is LockStatementSyntax lockStatement && lockStatement.Expression == node) ||