33 references to Visit
Microsoft.CodeAnalysis (33)
Generated\Operations.Generated.cs (32)
10789
public static T CloneOperation<T>(T operation) where T : IOperation => s_instance.
Visit
(operation);
10794
private ImmutableArray<T> VisitArray<T>(ImmutableArray<T> nodes) where T : IOperation => nodes.SelectAsArray((n, @this) => @this.
Visit
(n), this)!;
10795
private ImmutableArray<(ISymbol, T)> VisitArray<T>(ImmutableArray<(ISymbol, T)> nodes) where T : IOperation => nodes.SelectAsArray((n, @this) => (n.Item1, @this.
Visit
(n.Item2)), this)!;
10859
return new TryOperation(
Visit
(internalOperation.Body), VisitArray(internalOperation.Catches),
Visit
(internalOperation.Finally), internalOperation.ExitLabel, internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
10874
return new LocalFunctionOperation(internalOperation.Symbol,
Visit
(internalOperation.Body),
Visit
(internalOperation.IgnoredBody), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
10889
return new RaiseEventOperation(
Visit
(internalOperation.EventReference), VisitArray(internalOperation.Arguments), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
10964
return new AnonymousFunctionOperation(internalOperation.Symbol,
Visit
(internalOperation.Body), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
10969
return new ObjectCreationOperation(internalOperation.Constructor,
Visit
(internalOperation.Initializer), VisitArray(internalOperation.Arguments), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.Type, internalOperation.OperationConstantValue, internalOperation.IsImplicit);
10974
return new TypeParameterObjectCreationOperation(
Visit
(internalOperation.Initializer), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.Type, internalOperation.IsImplicit);
10979
return new ArrayCreationOperation(VisitArray(internalOperation.DimensionSizes),
Visit
(internalOperation.Initializer), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.Type, internalOperation.IsImplicit);
11044
return new MemberInitializerOperation(Visit(internalOperation.InitializedMember),
Visit
(internalOperation.Initializer), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.Type, internalOperation.IsImplicit);
11094
return new IsPatternOperation(Visit(internalOperation.Value),
Visit
(internalOperation.Pattern), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.Type, internalOperation.IsImplicit);
11149
return new VariableDeclaratorOperation(internalOperation.Symbol,
Visit
(internalOperation.Initializer), VisitArray(internalOperation.IgnoredArguments), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
11154
return new VariableDeclarationOperation(VisitArray(internalOperation.Declarators),
Visit
(internalOperation.Initializer), VisitArray(internalOperation.IgnoredDimensions), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
11164
return new CatchClauseOperation(Visit(internalOperation.ExceptionDeclarationOrExpression), internalOperation.ExceptionType, internalOperation.Locals, Visit(internalOperation.Filter),
Visit
(internalOperation.Handler), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
11179
return new PatternCaseClauseOperation(internalOperation.Label,
Visit
(internalOperation.Pattern), Visit(internalOperation.Guard), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
11224
return new MethodBodyOperation(
Visit
(internalOperation.BlockBody),
Visit
(internalOperation.ExpressionBody), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
11229
return new ConstructorBodyOperation(internalOperation.Locals, Visit(internalOperation.Initializer),
Visit
(internalOperation.BlockBody),
Visit
(internalOperation.ExpressionBody), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
11279
return new SwitchExpressionArmOperation(
Visit
(internalOperation.Pattern), Visit(internalOperation.Guard), Visit(internalOperation.Value), internalOperation.Locals, internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
11284
return new PropertySubpatternOperation(Visit(internalOperation.Member),
Visit
(internalOperation.Pattern), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
11294
return new FixedOperation(internalOperation.Locals,
Visit
(internalOperation.Variables), Visit(internalOperation.Body), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
11299
return new NoPiaObjectCreationOperation(
Visit
(internalOperation.Initializer), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.Type, internalOperation.IsImplicit);
11314
return new UsingDeclarationOperation(
Visit
(internalOperation.DeclarationGroup), internalOperation.IsAsynchronous, internalOperation.DisposeInfo, internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
11319
return new NegatedPatternOperation(
Visit
(internalOperation.Pattern), internalOperation.InputType, internalOperation.NarrowedType, internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
11324
return new BinaryPatternOperation(internalOperation.OperatorKind,
Visit
(internalOperation.LeftPattern),
Visit
(internalOperation.RightPattern), internalOperation.InputType, internalOperation.NarrowedType, internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
11339
return new WithOperation(Visit(internalOperation.Operand), internalOperation.CloneMethod,
Visit
(internalOperation.Initializer), internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.Type, internalOperation.IsImplicit);
11374
return new SlicePatternOperation(internalOperation.SliceSymbol,
Visit
(internalOperation.Pattern), internalOperation.InputType, internalOperation.NarrowedType, internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
Operations\OperationCloner.cs (1)
32
return new DynamicObjectCreationOperation(
Visit
(operation.Initializer), VisitArray(operation.Arguments), ((HasDynamicArgumentsExpression)operation).ArgumentNames, ((HasDynamicArgumentsExpression)operation).ArgumentRefKinds, ((Operation)operation).OwningSemanticModel, operation.Syntax, operation.Type, operation.IsImplicit);