IVariableDeclarationGroupOperation (1 declarations, DeclarationKind: Using) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'using var c = new C();')
IUsingDeclarationOperation(IsAsynchronous: False) (OperationKind.UsingDeclaration, Type: null) (Syntax: 'using var c = new C();')
DeclarationGroup:
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsImplicit) (Syntax: 'using var c = new C();')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'var c = new C()')
Declarators:
IVariableDeclaratorOperation (Symbol: C c) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c = new C()')
...
...
@@ -4905,7 +4907,9 @@ public static void M1()
Locals: Local_1: C c
Local_2: C d
Local_3: C e
IVariableDeclarationGroupOperation (1 declarations, DeclarationKind: Using) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'using var c = new C();')
IUsingDeclarationOperation(IsAsynchronous: False) (OperationKind.UsingDeclaration, Type: null) (Syntax: 'using var c = new C();')
DeclarationGroup:
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsImplicit) (Syntax: 'using var c = new C();')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'var c = new C()')
Declarators:
IVariableDeclaratorOperation (Symbol: C c) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c = new C()')
...
...
@@ -4917,7 +4921,9 @@ public static void M1()
null
Initializer:
null
IVariableDeclarationGroupOperation (1 declarations, DeclarationKind: Using) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'using var d = new C();')
IUsingDeclarationOperation(IsAsynchronous: False) (OperationKind.UsingDeclaration, Type: null) (Syntax: 'using var d = new C();')
DeclarationGroup:
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsImplicit) (Syntax: 'using var d = new C();')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'var d = new C()')
Declarators:
IVariableDeclaratorOperation (Symbol: C d) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'd = new C()')
...
...
@@ -4929,7 +4935,9 @@ public static void M1()
null
Initializer:
null
IVariableDeclarationGroupOperation (1 declarations, DeclarationKind: Using) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'using var e = new C();')
IUsingDeclarationOperation(IsAsynchronous: False) (OperationKind.UsingDeclaration, Type: null) (Syntax: 'using var e = new C();')
DeclarationGroup:
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsImplicit) (Syntax: 'using var e = new C();')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'var e = new C()')
Declarators:
IVariableDeclaratorOperation (Symbol: C e) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'e = new C()')
...
...
@@ -4968,7 +4976,9 @@ public static void M1()
}
";
stringexpectedOperationTree=@"
IVariableDeclarationGroupOperation (1 declarations, DeclarationKind: Using) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'using C c = ... = new C();')
IUsingDeclarationOperation(IsAsynchronous: False) (OperationKind.UsingDeclaration, Type: null) (Syntax: 'using C c = ... = new C();')
DeclarationGroup:
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsImplicit) (Syntax: 'using C c = ... = new C();')
IVariableDeclarationOperation (3 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'C c = new C ... e = new C()')
Declarators:
IVariableDeclaratorOperation (Symbol: C c) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c = new C()')
@@ -5212,7 +5230,9 @@ public static async Task M1()
Local_4: C f
Local_5: C g
Local_6: C h
IVariableDeclarationGroupOperation (1 declarations, DeclarationKind: Using) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'using C c = new C();')
IUsingDeclarationOperation(IsAsynchronous: False) (OperationKind.UsingDeclaration, Type: null) (Syntax: 'using C c = new C();')
DeclarationGroup:
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsImplicit) (Syntax: 'using C c = new C();')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'C c = new C()')
Declarators:
IVariableDeclaratorOperation (Symbol: C c) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c = new C()')
...
...
@@ -5224,7 +5244,9 @@ public static async Task M1()
null
Initializer:
null
IVariableDeclarationGroupOperation (1 declarations, DeclarationKind: AsynchronousUsing) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'await using ... = new C();')
IUsingDeclarationOperation(IsAsynchronous: True) (OperationKind.UsingDeclaration, Type: null) (Syntax: 'await using ... = new C();')
DeclarationGroup:
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsImplicit) (Syntax: 'await using ... = new C();')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'C d = new C()')
Declarators:
IVariableDeclaratorOperation (Symbol: C d) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'd = new C()')
...
...
@@ -5236,7 +5258,9 @@ public static async Task M1()
null
Initializer:
null
IVariableDeclarationGroupOperation (1 declarations, DeclarationKind: Using) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'using C e = ... = new C();')
IUsingDeclarationOperation(IsAsynchronous: False) (OperationKind.UsingDeclaration, Type: null) (Syntax: 'using C e = ... = new C();')
DeclarationGroup:
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsImplicit) (Syntax: 'using C e = ... = new C();')
IVariableDeclarationOperation (2 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'C e = new C ... f = new C()')
Declarators:
IVariableDeclaratorOperation (Symbol: C e) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'e = new C()')
...
...
@@ -5255,7 +5279,9 @@ public static async Task M1()
null
Initializer:
null
IVariableDeclarationGroupOperation (1 declarations, DeclarationKind: AsynchronousUsing) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'await using ... = new C();')
IUsingDeclarationOperation(IsAsynchronous: True) (OperationKind.UsingDeclaration, Type: null) (Syntax: 'await using ... = new C();')
DeclarationGroup:
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsImplicit) (Syntax: 'await using ... = new C();')
IVariableDeclarationOperation (2 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'C g = new C ... h = new C()')
Declarators:
IVariableDeclaratorOperation (Symbol: C g) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'g = new C()')
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.