Пример #1
0
 private static bool IsNonConstantExpressionContext(SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken)
 {
     return
         syntaxTree.IsExpressionContext(position, tokenOnLeftOfPosition, attributes: true, cancellationToken: cancellationToken) &&
         !syntaxTree.IsConstantExpressionContext(position, tokenOnLeftOfPosition, cancellationToken);
 }