コード例 #1
0
ファイル: TestOperationVisitor.cs プロジェクト: sidkcr/roslyn
 internal override void VisitNoPiaObjectCreation(INoPiaObjectCreationOperation operation)
 {
     Assert.Equal(OperationKind.None, operation.Kind);
     if (operation.Initializer == null)
     {
         Assert.Empty(operation.Children);
     }
     else
     {
         Assert.Same(operation.Initializer, operation.Children.Single());
     }
 }
コード例 #2
0
 internal override IOperation VisitNoPiaObjectCreation(INoPiaObjectCreationOperation operation, object argument)
 {
     return(new NoPiaObjectCreationOperation(Visit(operation.Initializer), ((Operation)operation).SemanticModel, operation.Syntax, operation.Type, operation.ConstantValue, operation.IsImplicit));
 }
コード例 #3
0
ファイル: OperationVisitor.cs プロジェクト: zyonet/roslyn
 internal virtual void VisitNoPiaObjectCreation(INoPiaObjectCreationOperation operation)
 {
     VisitNoneOperation(operation);
 }