1 implementation of Resources
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
4808public IOperation Resources { get; }
13 references to Resources
Microsoft.Analyzers.Extra (1)
AsyncCallInsideUsingBlockAnalyzer.cs (1)
62if (operation.Resources is not IVariableDeclarationGroupOperation declarationGroup)
Microsoft.CodeAnalysis (3)
Generated\Operations.Generated.cs (2)
493/// Represents a <see cref="Body" /> of operations that are executed while using disposable <see cref="Resources" />. 521/// Locals declared within the <see cref="Resources" /> with scope spanning across this entire <see cref="IUsingOperation" />.
Operations\ControlFlowGraphBuilder.cs (1)
3951HandleUsingOperationParts(operation.Resources, operation.Body, disposeInfo.DisposeMethod, disposeInfo.DisposeArguments, operation.Locals, operation.IsAsynchronous);
Microsoft.CodeAnalysis.Test.Utilities (6)
Compilation\OperationTreeVerifier.cs (3)
757Visit(operation.Resources, "Resources"); 760Assert.NotEqual(OperationKind.VariableDeclaration, operation.Resources.Kind); 761Assert.NotEqual(OperationKind.VariableDeclarator, operation.Resources.Kind);
Compilation\TestOperationVisitor.cs (3)
464AssertEx.Equal(new[] { operation.Resources, operation.Body }, operation.ChildOperations); 465Assert.NotEqual(OperationKind.VariableDeclaration, operation.Resources.Kind); 466Assert.NotEqual(OperationKind.VariableDeclarator, operation.Resources.Kind);
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (3)
IOperation\IOperationTests_IUsingStatement.vb (3)
45Assert.NotNull(op.Resources.Syntax) 46Assert.Same(node.UsingStatement, op.Resources.Syntax) 85Assert.Equal(OperationKind.Invalid, op.Resources.Kind)