CodeGeneration\SyntaxGeneratorTests.vb (459)
62VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(0), "0")
63VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(1), "1")
64VerifySyntax(Of UnaryExpressionSyntax)(Generator.LiteralExpression(-1), "-1")
65VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Integer.MinValue), "Global.System.Int32.MinValue")
66VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Integer.MaxValue), "Global.System.Int32.MaxValue")
68VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(0L), "0L")
69VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(1L), "1L")
70VerifySyntax(Of UnaryExpressionSyntax)(Generator.LiteralExpression(-1L), "-1L")
71VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Long.MinValue), "Global.System.Int64.MinValue")
72VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Long.MaxValue), "Global.System.Int64.MaxValue")
74VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(0UL), "0UL")
75VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(1UL), "1UL")
76VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(ULong.MinValue), "0UL")
77VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(ULong.MaxValue), "Global.System.UInt64.MaxValue")
79VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(0.0F), "0F")
80VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(1.0F), "1F")
81VerifySyntax(Of UnaryExpressionSyntax)(Generator.LiteralExpression(-1.0F), "-1F")
82VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Single.MinValue), "Global.System.Single.MinValue")
83VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Single.MaxValue), "Global.System.Single.MaxValue")
84VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Single.Epsilon), "Global.System.Single.Epsilon")
85VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Single.NaN), "Global.System.Single.NaN")
86VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Single.NegativeInfinity), "Global.System.Single.NegativeInfinity")
87VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Single.PositiveInfinity), "Global.System.Single.PositiveInfinity")
89VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(0.0), "0R")
90VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(1.0), "1R")
91VerifySyntax(Of UnaryExpressionSyntax)(Generator.LiteralExpression(-1.0), "-1R")
92VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Double.MinValue), "Global.System.Double.MinValue")
93VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Double.MaxValue), "Global.System.Double.MaxValue")
94VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Double.Epsilon), "Global.System.Double.Epsilon")
95VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Double.NaN), "Global.System.Double.NaN")
96VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Double.NegativeInfinity), "Global.System.Double.NegativeInfinity")
97VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Double.PositiveInfinity), "Global.System.Double.PositiveInfinity")
99VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(0D), "0D")
100VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(0.00D), "0.00D")
101VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(Decimal.Parse("1.00", CultureInfo.InvariantCulture)), "1.00D")
102VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(Decimal.Parse("-1.00", CultureInfo.InvariantCulture)), "-1.00D")
103VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(Decimal.Parse("1.0000000000", CultureInfo.InvariantCulture)), "1.0000000000D")
104VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(Decimal.Parse("0.000000", CultureInfo.InvariantCulture)), "0.000000D")
105VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(Decimal.Parse("0.0000000", CultureInfo.InvariantCulture)), "0.0000000D")
106VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(1000000000D), "1000000000D")
107VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(123456789.123456789D), "123456789.123456789D")
108VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(Decimal.Parse("1E-28", NumberStyles.Any, CultureInfo.InvariantCulture)), "0.0000000000000000000000000001D")
109VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(Decimal.Parse("0E-28", NumberStyles.Any, CultureInfo.InvariantCulture)), "0.0000000000000000000000000000D")
110VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(Decimal.Parse("1E-29", NumberStyles.Any, CultureInfo.InvariantCulture)), "0.0000000000000000000000000000D")
111VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(Decimal.Parse("-1E-29", NumberStyles.Any, CultureInfo.InvariantCulture)), "0.0000000000000000000000000000D")
112VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Decimal.MinValue), "Global.System.Decimal.MinValue")
113VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Decimal.MaxValue), "Global.System.Decimal.MaxValue")
115VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression("c"c), """c""c")
117VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression("str"), """str""")
119VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(True), "True")
120VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(False), "False")
125VerifySyntax(Of AttributeListSyntax)(Generator.Attribute(GetAttributeData("
132VerifySyntax(Of AttributeListSyntax)(Generator.Attribute(GetAttributeData("
141VerifySyntax(Of AttributeListSyntax)(Generator.Attribute(GetAttributeData("
150VerifySyntax(Of AttributeListSyntax)(Generator.Attribute(GetAttributeData("
159VerifySyntax(Of AttributeListSyntax)(Generator.Attribute(GetAttributeData("
168VerifySyntax(Of AttributeListSyntax)(Generator.Attribute(GetAttributeData("
181VerifySyntax(Of AttributeListSyntax)(Generator.Attribute(GetAttributeData("
190VerifySyntax(Of AttributeListSyntax)(Generator.Attribute(GetAttributeData("
199VerifySyntax(Of AttributeListSyntax)(Generator.Attribute(GetAttributeData("
218VerifySyntax(Of IdentifierNameSyntax)(Generator.IdentifierName("x"), "x")
219VerifySyntax(Of QualifiedNameSyntax)(Generator.QualifiedName(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x.y")
220VerifySyntax(Of QualifiedNameSyntax)(Generator.DottedName("x.y"), "x.y")
222VerifySyntax(Of GenericNameSyntax)(Generator.GenericName("x", Generator.IdentifierName("y")), "x(Of y)")
223VerifySyntax(Of GenericNameSyntax)(Generator.GenericName("x", Generator.IdentifierName("y"), Generator.IdentifierName("z")), "x(Of y, z)")
226VerifySyntax(Of GenericNameSyntax)(Generator.WithTypeArguments(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x(Of y)")
229VerifySyntax(Of QualifiedNameSyntax)(Generator.WithTypeArguments(Generator.DottedName("x.y"), Generator.IdentifierName("z")), "x.y(Of z)")
232VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.WithTypeArguments(Generator.MemberAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x.y(Of z)")
236VerifySyntax(Of GenericNameSyntax)(gname, "x(Of y)")
237VerifySyntax(Of GenericNameSyntax)(Generator.WithTypeArguments(gname, Generator.IdentifierName("z")), "x(Of z)")
243VerifySyntax(Of TypeSyntax)(Generator.IdentifierName("x"), "x")
244VerifySyntax(Of TypeSyntax)(Generator.QualifiedName(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x.y")
245VerifySyntax(Of TypeSyntax)(Generator.DottedName("x.y"), "x.y")
246VerifySyntax(Of TypeSyntax)(Generator.GenericName("x", Generator.IdentifierName("y")), "x(Of y)")
247VerifySyntax(Of TypeSyntax)(Generator.GenericName("x", Generator.IdentifierName("y"), Generator.IdentifierName("z")), "x(Of y, z)")
249VerifySyntax(Of TypeSyntax)(Generator.ArrayTypeExpression(Generator.IdentifierName("x")), "x()")
250VerifySyntax(Of TypeSyntax)(Generator.ArrayTypeExpression(Generator.ArrayTypeExpression(Generator.IdentifierName("x"))), "x()()")
251VerifySyntax(Of TypeSyntax)(Generator.NullableTypeExpression(Generator.IdentifierName("x")), "x?")
252VerifySyntax(Of TypeSyntax)(Generator.NullableTypeExpression(Generator.NullableTypeExpression(Generator.IdentifierName("x"))), "x?")
255VerifySyntax(Of TupleElementSyntax)(Generator.TupleElementExpression(Generator.IdentifierName("x")), "x")
256VerifySyntax(Of TupleElementSyntax)(Generator.TupleElementExpression(Generator.IdentifierName("x"), "y"), "y As x")
257VerifySyntax(Of TupleElementSyntax)(Generator.TupleElementExpression(intType), "System.Int32")
258VerifySyntax(Of TupleElementSyntax)(Generator.TupleElementExpression(intType, "y"), "y As System.Int32")
259VerifySyntax(Of TypeSyntax)(Generator.TupleTypeExpression(Generator.TupleElementExpression(Generator.IdentifierName("x")), Generator.TupleElementExpression(Generator.IdentifierName("y"))), "(x, y)")
260VerifySyntax(Of TypeSyntax)(Generator.TupleTypeExpression(New ITypeSymbol() {intType, intType}), "(System.Int32, System.Int32)")
261VerifySyntax(Of TypeSyntax)(Generator.TupleTypeExpression(New ITypeSymbol() {intType, intType}, New String() {"x", "y"}), "(x As System.Int32, y As System.Int32)")
266VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Byte), "Byte")
267VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_SByte), "SByte")
269VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Int16), "Short")
270VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_UInt16), "UShort")
272VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Int32), "Integer")
273VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_UInt32), "UInteger")
275VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Int64), "Long")
276VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_UInt64), "ULong")
278VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Single), "Single")
279VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Double), "Double")
281VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Char), "Char")
282VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_String), "String")
284VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Object), "Object")
285VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Decimal), "Decimal")
291VerifySyntax(Of QualifiedNameSyntax)(Generator.TypeExpression(genericType), "Global.System.Collections.Generic.IEnumerable(Of T)")
294VerifySyntax(Of ArrayTypeSyntax)(Generator.TypeExpression(arrayType), "System.Int32()")
299VerifySyntax(Of UnaryExpressionSyntax)(Generator.NegateExpression(Generator.IdentifierName("x")), "-(x)")
300VerifySyntax(Of BinaryExpressionSyntax)(Generator.AddExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) + (y)")
301VerifySyntax(Of BinaryExpressionSyntax)(Generator.SubtractExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) - (y)")
302VerifySyntax(Of BinaryExpressionSyntax)(Generator.MultiplyExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) * (y)")
303VerifySyntax(Of BinaryExpressionSyntax)(Generator.DivideExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) / (y)")
304VerifySyntax(Of BinaryExpressionSyntax)(Generator.ModuloExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) Mod (y)")
306VerifySyntax(Of UnaryExpressionSyntax)(Generator.BitwiseNotExpression(Generator.IdentifierName("x")), "Not(x)")
307VerifySyntax(Of BinaryExpressionSyntax)(Generator.BitwiseAndExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) And (y)")
308VerifySyntax(Of BinaryExpressionSyntax)(Generator.BitwiseOrExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) Or (y)")
310VerifySyntax(Of UnaryExpressionSyntax)(Generator.LogicalNotExpression(Generator.IdentifierName("x")), "Not(x)")
311VerifySyntax(Of BinaryExpressionSyntax)(Generator.LogicalAndExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) AndAlso (y)")
312VerifySyntax(Of BinaryExpressionSyntax)(Generator.LogicalOrExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) OrElse (y)")
317VerifySyntax(Of BinaryExpressionSyntax)(Generator.ReferenceEqualsExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) Is (y)")
318VerifySyntax(Of BinaryExpressionSyntax)(Generator.ValueEqualsExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) = (y)")
320VerifySyntax(Of BinaryExpressionSyntax)(Generator.ReferenceNotEqualsExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) IsNot (y)")
321VerifySyntax(Of BinaryExpressionSyntax)(Generator.ValueNotEqualsExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) <> (y)")
323VerifySyntax(Of BinaryExpressionSyntax)(Generator.LessThanExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) < (y)")
324VerifySyntax(Of BinaryExpressionSyntax)(Generator.LessThanOrEqualExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) <= (y)")
326VerifySyntax(Of BinaryExpressionSyntax)(Generator.GreaterThanExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) > (y)")
327VerifySyntax(Of BinaryExpressionSyntax)(Generator.GreaterThanOrEqualExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "(x) >= (y)")
332VerifySyntax(Of BinaryConditionalExpressionSyntax)(Generator.CoalesceExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "If(x, y)")
333VerifySyntax(Of TernaryConditionalExpressionSyntax)(Generator.ConditionalExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"), Generator.IdentifierName("z")), "If(x, y, z)")
338VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.MemberAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x.y")
339VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.MemberAccessExpression(Generator.IdentifierName("x"), "y"), "x.y")
340VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.MemberAccessExpression(Generator.MemberAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x.y.z")
341VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.MemberAccessExpression(Generator.InvocationExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x(y).z")
342VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.MemberAccessExpression(Generator.ElementAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x(y).z")
343VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.MemberAccessExpression(Generator.AddExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "((x) + (y)).z")
344VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.MemberAccessExpression(Generator.NegateExpression(Generator.IdentifierName("x")), Generator.IdentifierName("y")), "(-(x)).y")
349VerifySyntax(Of ArrayCreationExpressionSyntax)(
353VerifySyntax(Of ArrayCreationExpressionSyntax)(
360VerifySyntax(Of ObjectCreationExpressionSyntax)(
364VerifySyntax(Of ObjectCreationExpressionSyntax)(
372VerifySyntax(Of ObjectCreationExpressionSyntax)(
379VerifySyntax(Of InvocationExpressionSyntax)(
383VerifySyntax(Of InvocationExpressionSyntax)(
387VerifySyntax(Of InvocationExpressionSyntax)(
391VerifySyntax(Of InvocationExpressionSyntax)(
395VerifySyntax(Of InvocationExpressionSyntax)(
399VerifySyntax(Of InvocationExpressionSyntax)(
406VerifySyntax(Of DirectCastExpressionSyntax)(Generator.CastExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "DirectCast(y, x)")
407VerifySyntax(Of CTypeExpressionSyntax)(Generator.ConvertExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "CType(y, x)")
412VerifySyntax(Of TypeOfExpressionSyntax)(Generator.IsTypeExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "TypeOf(x) Is y")
413VerifySyntax(Of TryCastExpressionSyntax)(Generator.TryCastExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "TryCast(x, y)")
414VerifySyntax(Of GetTypeExpressionSyntax)(Generator.TypeOfExpression(Generator.IdentifierName("x")), "GetType(x)")
420VerifySyntax(Of InvocationExpressionSyntax)(Generator.InvocationExpression(Generator.IdentifierName("x")), "x()")
421VerifySyntax(Of InvocationExpressionSyntax)(Generator.InvocationExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x(y)")
422VerifySyntax(Of InvocationExpressionSyntax)(Generator.InvocationExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"), Generator.IdentifierName("z")), "x(y, z)")
425VerifySyntax(Of InvocationExpressionSyntax)(Generator.InvocationExpression(Generator.IdentifierName("x"), Generator.Argument(Generator.IdentifierName("y"))), "x(y)")
426VerifySyntax(Of InvocationExpressionSyntax)(Generator.InvocationExpression(Generator.IdentifierName("x"), Generator.Argument(RefKind.Ref, Generator.IdentifierName("y"))), "x(y)")
427VerifySyntax(Of InvocationExpressionSyntax)(Generator.InvocationExpression(Generator.IdentifierName("x"), Generator.Argument(RefKind.Out, Generator.IdentifierName("y"))), "x(y)")
429VerifySyntax(Of InvocationExpressionSyntax)(Generator.InvocationExpression(Generator.MemberAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x.y()")
430VerifySyntax(Of InvocationExpressionSyntax)(Generator.InvocationExpression(Generator.ElementAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x(y)()")
431VerifySyntax(Of InvocationExpressionSyntax)(Generator.InvocationExpression(Generator.InvocationExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x(y)()")
432VerifySyntax(Of InvocationExpressionSyntax)(Generator.InvocationExpression(Generator.AddExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "((x) + (y))()")
437VerifySyntax(Of AssignmentStatementSyntax)(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x = y")
442VerifySyntax(Of ExpressionStatementSyntax)(Generator.ExpressionStatement(Generator.IdentifierName("x")), "x")
443VerifySyntax(Of ExpressionStatementSyntax)(Generator.ExpressionStatement(Generator.InvocationExpression(Generator.IdentifierName("x"))), "x()")
448VerifySyntax(Of LocalDeclarationStatementSyntax)(Generator.LocalDeclarationStatement(Generator.IdentifierName("x"), "y"), "Dim y As x")
449VerifySyntax(Of LocalDeclarationStatementSyntax)(Generator.LocalDeclarationStatement(Generator.IdentifierName("x"), "y", Generator.IdentifierName("z")), "Dim y As x = z")
450VerifySyntax(Of LocalDeclarationStatementSyntax)(Generator.LocalDeclarationStatement("y", Generator.IdentifierName("z")), "Dim y = z")
452VerifySyntax(Of LocalDeclarationStatementSyntax)(Generator.LocalDeclarationStatement(Generator.IdentifierName("x"), "y", isConst:=True), "Const y As x")
453VerifySyntax(Of LocalDeclarationStatementSyntax)(Generator.LocalDeclarationStatement(Generator.IdentifierName("x"), "y", Generator.IdentifierName("z"), isConst:=True), "Const y As x = z")
454VerifySyntax(Of LocalDeclarationStatementSyntax)(Generator.LocalDeclarationStatement(DirectCast(Nothing, SyntaxNode), "y", Generator.IdentifierName("z"), isConst:=True), "Const y = z")
459VerifySyntax(Of AwaitExpressionSyntax)(Generator.AwaitExpression(Generator.IdentifierName("x")), "Await x")
464VerifySyntax(Of NameOfExpressionSyntax)(Generator.NameOfExpression(Generator.IdentifierName("x")), "NameOf(x)")
469VerifySyntax(Of TupleExpressionSyntax)(Generator.TupleExpression(
471VerifySyntax(Of TupleExpressionSyntax)(Generator.TupleExpression(
478VerifySyntax(Of ReturnStatementSyntax)(Generator.ReturnStatement(), "Return")
479VerifySyntax(Of ReturnStatementSyntax)(Generator.ReturnStatement(Generator.IdentifierName("x")), "Return x")
484VerifySyntax(Of YieldStatementSyntax)(Generator.YieldReturnStatement(Generator.LiteralExpression(1)), "Yield 1")
485VerifySyntax(Of YieldStatementSyntax)(Generator.YieldReturnStatement(Generator.IdentifierName("x")), "Yield x")
490VerifySyntax(Of ThrowStatementSyntax)(Generator.ThrowStatement(), "Throw")
491VerifySyntax(Of ThrowStatementSyntax)(Generator.ThrowStatement(Generator.IdentifierName("x")), "Throw x")
496VerifySyntax(Of MultiLineIfBlockSyntax)(
501VerifySyntax(Of MultiLineIfBlockSyntax)(
506VerifySyntax(Of MultiLineIfBlockSyntax)(
512VerifySyntax(Of MultiLineIfBlockSyntax)(
519VerifySyntax(Of MultiLineIfBlockSyntax)(
529VerifySyntax(Of MultiLineIfBlockSyntax)(
539VerifySyntax(Of MultiLineIfBlockSyntax)(
557VerifySyntax(Of SelectBlockSyntax)(
566VerifySyntax(Of SelectBlockSyntax)(
576VerifySyntax(Of SelectBlockSyntax)(
589VerifySyntax(Of SelectBlockSyntax)(
602VerifySyntax(Of SelectBlockSyntax)(
614VerifySyntax(Of UsingBlockSyntax)(
620VerifySyntax(Of UsingBlockSyntax)(
626VerifySyntax(Of UsingBlockSyntax)(
635VerifySyntax(Of SyncLockBlockSyntax)(
645VerifySyntax(Of TryBlockSyntax)(
656VerifySyntax(Of TryBlockSyntax)(
671VerifySyntax(Of TryBlockSyntax)(
685VerifySyntax(Of TryBlockSyntax)(
699VerifySyntax(Of WhileBlockSyntax)(
705VerifySyntax(Of WhileBlockSyntax)(
713VerifySyntax(Of SingleLineLambdaExpressionSyntax)(
717VerifySyntax(Of SingleLineLambdaExpressionSyntax)(
721VerifySyntax(Of SingleLineLambdaExpressionSyntax)(
725VerifySyntax(Of SingleLineLambdaExpressionSyntax)(
729VerifySyntax(Of SingleLineLambdaExpressionSyntax)(
733VerifySyntax(Of SingleLineLambdaExpressionSyntax)(
737VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
743VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
749VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
755VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
761VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
767VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
773VerifySyntax(Of SingleLineLambdaExpressionSyntax)(
777VerifySyntax(Of SingleLineLambdaExpressionSyntax)(
781VerifySyntax(Of SingleLineLambdaExpressionSyntax)(
785VerifySyntax(Of SingleLineLambdaExpressionSyntax)(
827VerifySyntax(Of FieldDeclarationSyntax)(
831VerifySyntax(Of FieldDeclarationSyntax)(
835VerifySyntax(Of FieldDeclarationSyntax)(
839VerifySyntax(Of FieldDeclarationSyntax)(
846VerifySyntax(Of MethodBlockSyntax)(
851VerifySyntax(Of MethodBlockSyntax)(
856VerifySyntax(Of MethodBlockSyntax)(
861VerifySyntax(Of MethodBlockSyntax)(
867VerifySyntax(Of MethodBlockSyntax)(
872VerifySyntax(Of MethodBlockSyntax)(
877VerifySyntax(Of MethodBlockSyntax)(
882VerifySyntax(Of MethodStatementSyntax)(
886VerifySyntax(Of MethodBlockSyntax)(
897VerifySyntax(Of MethodBlockSyntax)(
904VerifySyntax(Of MethodBlockSyntax)(
911VerifySyntax(Of ClassBlockSyntax)(
922VerifySyntax(Of MethodStatementSyntax)(
928VerifySyntax(Of ClassBlockSyntax)(
1094VerifySyntax(Of OperatorBlockSyntax)(
1110VerifySyntax(Of MethodBlockSyntax)(
1118VerifySyntax(Of PropertyStatementSyntax)(
1122VerifySyntax(Of PropertyStatementSyntax)(
1126VerifySyntax(Of PropertyBlockSyntax)(
1133VerifySyntax(Of PropertyBlockSyntax)(
1140VerifySyntax(Of PropertyStatementSyntax)(
1144VerifySyntax(Of PropertyBlockSyntax)(
1152VerifySyntax(Of PropertyBlockSyntax)(
1160VerifySyntax(Of PropertyBlockSyntax)(
1174VerifySyntax(Of PropertyStatementSyntax)(
1178VerifySyntax(Of PropertyBlockSyntax)(
1188VerifySyntax(Of PropertyBlockSyntax)(
1203VerifySyntax(Of PropertyBlockSyntax)(
1213VerifySyntax(Of PropertyBlockSyntax)(
1223VerifySyntax(Of PropertyStatementSyntax)(
1227VerifySyntax(Of PropertyBlockSyntax)(
1236VerifySyntax(Of PropertyBlockSyntax)(
1249VerifySyntax(Of PropertyStatementSyntax)(
1253VerifySyntax(Of PropertyStatementSyntax)(
1257VerifySyntax(Of PropertyStatementSyntax)(
1261VerifySyntax(Of PropertyBlockSyntax)(
1268VerifySyntax(Of PropertyBlockSyntax)(
1275VerifySyntax(Of PropertyBlockSyntax)(
1284VerifySyntax(Of PropertyBlockSyntax)(
1293VerifySyntax(Of PropertyBlockSyntax)(
1303VerifySyntax(Of PropertyBlockSyntax)(
1315VerifySyntax(Of PropertyBlockSyntax)(
1332VerifySyntax(Of EventStatementSyntax)(
1336VerifySyntax(Of EventStatementSyntax)(
1340VerifySyntax(Of EventBlockSyntax)(
1354VerifySyntax(Of EventBlockSyntax)(
1371VerifySyntax(Of ConstructorBlockSyntax)(
1376VerifySyntax(Of ConstructorBlockSyntax)(
1381VerifySyntax(Of ConstructorBlockSyntax)(
1386VerifySyntax(Of ConstructorBlockSyntax)(
1397VerifySyntax(Of ClassBlockSyntax)(
1402VerifySyntax(Of ClassBlockSyntax)(
1407VerifySyntax(Of ClassBlockSyntax)(
1412VerifySyntax(Of ClassBlockSyntax)(
1419VerifySyntax(Of ClassBlockSyntax)(
1426VerifySyntax(Of ClassBlockSyntax)(
1434VerifySyntax(Of ClassBlockSyntax)(
1439VerifySyntax(Of ClassBlockSyntax)(
1450VerifySyntax(Of StructureBlockSyntax)(
1455VerifySyntax(Of StructureBlockSyntax)(
1460VerifySyntax(Of StructureBlockSyntax)(
1465VerifySyntax(Of StructureBlockSyntax)(
1472VerifySyntax(Of StructureBlockSyntax)(
1479VerifySyntax(Of StructureBlockSyntax)(
1484VerifySyntax(Of StructureBlockSyntax)(
1491VerifySyntax(Of StructureBlockSyntax)(
1499VerifySyntax(Of StructureBlockSyntax)(
1511VerifySyntax(Of InterfaceBlockSyntax)(
1516VerifySyntax(Of InterfaceBlockSyntax)(
1521VerifySyntax(Of InterfaceBlockSyntax)(
1528VerifySyntax(Of InterfaceBlockSyntax)(
1535VerifySyntax(Of InterfaceBlockSyntax)(
1540VerifySyntax(Of InterfaceBlockSyntax)(
1548VerifySyntax(Of InterfaceBlockSyntax)(
1556VerifySyntax(Of InterfaceBlockSyntax)(
1564VerifySyntax(Of InterfaceBlockSyntax)(
1572VerifySyntax(Of InterfaceBlockSyntax)(
1598VerifySyntax(Of EnumBlockSyntax)(
1603VerifySyntax(Of EnumBlockSyntax)(
1611VerifySyntax(Of EnumBlockSyntax)(
1619VerifySyntax(Of EnumBlockSyntax)(
1630VerifySyntax(Of DelegateStatementSyntax)(
1634VerifySyntax(Of DelegateStatementSyntax)(
1638VerifySyntax(Of DelegateStatementSyntax)(
1642VerifySyntax(Of DelegateStatementSyntax)(
1646VerifySyntax(Of DelegateStatementSyntax)(
1651VerifySyntax(Of DelegateStatementSyntax)(
1658VerifySyntax(Of ImportsStatementSyntax)(
1662VerifySyntax(Of ImportsStatementSyntax)(
1666VerifySyntax(Of ImportsStatementSyntax)(
1673VerifySyntax(Of NamespaceBlockSyntax)(
1678VerifySyntax(Of NamespaceBlockSyntax)(
1683VerifySyntax(Of NamespaceBlockSyntax)(
1691VerifySyntax(Of NamespaceBlockSyntax)(
1706VerifySyntax(Of CompilationUnitSyntax)(
1710VerifySyntax(Of CompilationUnitSyntax)(
1717VerifySyntax(Of CompilationUnitSyntax)(
1723VerifySyntax(Of CompilationUnitSyntax)(
1733VerifySyntax(Of CompilationUnitSyntax)(
1753VerifySyntax(Of MethodBlockBaseSyntax)(
1760VerifySyntax(Of MethodBlockBaseSyntax)(
1767VerifySyntax(Of PropertyBlockSyntax)(
1779VerifySyntax(Of PropertyBlockSyntax)(
1791VerifySyntax(Of PropertyBlockSyntax)(
1808VerifySyntax(Of MethodBlockBaseSyntax)(
1813VerifySyntax(Of MethodBlockBaseSyntax)(
1821VerifySyntax(Of MethodBlockBaseSyntax)(
1828VerifySyntax(Of MethodBlockBaseSyntax)(
1835VerifySyntax(Of PropertyBlockSyntax)(
1847VerifySyntax(Of PropertyBlockSyntax)(
1864VerifySyntax(Of MethodBlockBaseSyntax)(
1869VerifySyntax(Of MethodBlockBaseSyntax)(
1877VerifySyntax(Of MethodStatementSyntax)(
1883VerifySyntax(Of MethodBlockSyntax)(
1891VerifySyntax(Of MethodStatementSyntax)(
1896VerifySyntax(Of MethodBlockSyntax)(
1903VerifySyntax(Of MethodStatementSyntax)(
1909VerifySyntax(Of MethodBlockSyntax)(
1917VerifySyntax(Of MethodStatementSyntax)(
1923VerifySyntax(Of MethodBlockSyntax)(
1930VerifySyntax(Of ClassBlockSyntax)(
1937VerifySyntax(Of StructureBlockSyntax)(
1944VerifySyntax(Of InterfaceBlockSyntax)(
1956VerifySyntax(Of MethodStatementSyntax)(
1962VerifySyntax(Of MethodBlockSyntax)(
1970VerifySyntax(Of MethodStatementSyntax)(
1976VerifySyntax(Of MethodBlockSyntax)(
1984VerifySyntax(Of MethodStatementSyntax)(
1990VerifySyntax(Of MethodBlockSyntax)(
1998VerifySyntax(Of MethodStatementSyntax)(
2004VerifySyntax(Of MethodBlockSyntax)(
2012VerifySyntax(Of MethodStatementSyntax)(
2021VerifySyntax(Of MethodStatementSyntax)(
2028VerifySyntax(Of MethodStatementSyntax)(
2035VerifySyntax(Of MethodStatementSyntax)(
2042VerifySyntax(Of MethodStatementSyntax)(
2049VerifySyntax(Of MethodStatementSyntax)(
2056VerifySyntax(Of MethodStatementSyntax)(
2063VerifySyntax(Of ClassBlockSyntax)(
2073VerifySyntax(Of StructureBlockSyntax)(
2083VerifySyntax(Of InterfaceBlockSyntax)(
2096VerifySyntax(Of AttributeListSyntax)(
2100VerifySyntax(Of AttributeListSyntax)(
2104VerifySyntax(Of AttributeListSyntax)(
2108VerifySyntax(Of AttributeListSyntax)(
2112VerifySyntax(Of AttributeListSyntax)(
2116VerifySyntax(Of AttributeListSyntax)(
2120VerifySyntax(Of AttributeListSyntax)(
2124VerifySyntax(Of AttributeListSyntax)(
2131VerifySyntax(Of FieldDeclarationSyntax)(
2138VerifySyntax(Of FieldDeclarationSyntax)(
2148VerifySyntax(Of MethodStatementSyntax)(
2155VerifySyntax(Of MethodStatementSyntax)(
2161VerifySyntax(Of MethodBlockSyntax)(
2169VerifySyntax(Of MethodBlockSyntax)(
2176VerifySyntax(Of PropertyStatementSyntax)(
2183VerifySyntax(Of PropertyBlockSyntax)(
2196VerifySyntax(Of PropertyStatementSyntax)(
2203VerifySyntax(Of PropertyBlockSyntax)(
2216VerifySyntax(Of ClassBlockSyntax)(
2224VerifySyntax(Of ParameterSyntax)(
2230VerifySyntax(Of CompilationUnitSyntax)(
2239VerifySyntax(Of CompilationUnitSyntax)(
2251VerifySyntax(Of DelegateStatementSyntax)(
2307VerifySyntax(Of ClassBlockSyntax)(
2315VerifySyntax(Of ClassBlockSyntax)(
2331VerifySyntax(Of InterfaceBlockSyntax)(
2342VerifySyntax(Of EnumBlockSyntax)(Generator.Declaration(_emptyCompilation.GetTypeByMetadataName("System.DateTimeKind")),
2352VerifySyntax(Of EnumBlockSyntax)(Generator.Declaration(_emptyCompilation.GetTypeByMetadataName("System.Security.SecurityRuleSet")),
2364VerifySyntax(Of DelegateStatementSyntax)(Generator.Declaration(type), "Public Delegate Sub D()")
2743VerifySyntax(Of ClassBlockSyntax)(classBlockWithModifiers, "NotInheritable Class C
2748VerifySyntax(Of ClassStatementSyntax)(classStatementWithModifiers, "NotInheritable Class C")
2755VerifySyntax(Of ClassBlockSyntax)(classBlock, "Class C
2806VerifySyntax(Of MethodBlockSyntax)(
2811VerifySyntax(Of MethodBlockSyntax)(
2816VerifySyntax(Of MethodStatementSyntax)(
2820VerifySyntax(Of MethodStatementSyntax)(
2824VerifySyntax(Of DelegateStatementSyntax)(
2828VerifySyntax(Of DelegateStatementSyntax)(
2913VerifySyntax(Of SingleLineLambdaExpressionSyntax)(
2923VerifySyntax(Of SingleLineLambdaExpressionSyntax)(
2928VerifySyntax(Of SingleLineLambdaExpressionSyntax)(
2933VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
2939VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
2945VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
2952VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
3002VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
3009VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
3016VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
3023VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
3030VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
3035VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
3040VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
3045VerifySyntax(Of MultiLineLambdaExpressionSyntax)(
3061VerifySyntax(Of AccessorBlockSyntax)(getAccessor,
3086VerifySyntax(Of AccessorBlockSyntax)(newGetAccessor,
3244VerifySyntax(Of ClassBlockSyntax)(
3251VerifySyntax(Of ClassBlockSyntax)(
3259VerifySyntax(Of ClassBlockSyntax)(
3267VerifySyntax(Of ClassBlockSyntax)(
3274VerifySyntax(Of ClassBlockSyntax)(
3301VerifySyntax(Of ClassBlockSyntax)(
3308VerifySyntax(Of ClassBlockSyntax)(
3315VerifySyntax(Of StructureBlockSyntax)(
3320VerifySyntax(Of InterfaceBlockSyntax)(
3353VerifySyntax(Of ClassBlockSyntax)(
3360VerifySyntax(Of ClassBlockSyntax)(
3368VerifySyntax(Of ClassBlockSyntax)(
3375VerifySyntax(Of StructureBlockSyntax)(
3382VerifySyntax(Of InterfaceBlockSyntax)(
3543VerifySyntax(Of ClassBlockSyntax)(
3552VerifySyntax(Of ClassBlockSyntax)(
3562VerifySyntax(Of ClassBlockSyntax)(
3574VerifySyntax(Of ClassBlockSyntax)(
3586VerifySyntax(Of ClassBlockSyntax)(
3596VerifySyntax(Of ClassBlockSyntax)(
3606VerifySyntax(Of ClassBlockSyntax)(
3616VerifySyntax(Of ClassBlockSyntax)(
3632VerifySyntax(Of ClassBlockSyntax)(
3644VerifySyntax(Of ClassBlockSyntax)(
3654VerifySyntax(Of ClassBlockSyntax)(
3663VerifySyntax(Of ClassBlockSyntax)(
3671VerifySyntax(Of ClassBlockSyntax)(
3679VerifySyntax(Of ClassBlockSyntax)(
3687VerifySyntax(Of ClassBlockSyntax)(
3695VerifySyntax(Of ClassBlockSyntax)(
3703VerifySyntax(Of ClassBlockSyntax)(
3711VerifySyntax(Of ClassBlockSyntax)(
3753VerifySyntax(Of ClassBlockSyntax)(
3761VerifySyntax(Of ClassBlockSyntax)(
3770VerifySyntax(Of ClassBlockSyntax)(
3779VerifySyntax(Of ClassBlockSyntax)(
3788VerifySyntax(Of ClassBlockSyntax)(
3795VerifySyntax(Of ClassBlockSyntax)(
3803VerifySyntax(Of ClassBlockSyntax)(
3810VerifySyntax(Of ClassBlockSyntax)(
3817VerifySyntax(Of ClassBlockSyntax)(
3824VerifySyntax(Of ClassBlockSyntax)(
3831VerifySyntax(Of ClassBlockSyntax)(
3838VerifySyntax(Of ClassBlockSyntax)(
3845VerifySyntax(Of ClassBlockSyntax)(