Parsing\LambdaAttributeParsingTests.cs (30)
876yield return getData("[A] x => x", tests => tests.LambdaExpression_01());
877yield return getData("[A] async x => x", tests => tests.LambdaExpression_01(SyntaxKind.AsyncKeyword));
878yield return getData("[A] static x => x", tests => tests.LambdaExpression_01(SyntaxKind.StaticKeyword));
879yield return getData("[A] async static x => x", tests => tests.LambdaExpression_01(SyntaxKind.AsyncKeyword, SyntaxKind.StaticKeyword));
880yield return getData("[A] static async x => x", tests => tests.LambdaExpression_01(SyntaxKind.StaticKeyword, SyntaxKind.AsyncKeyword));
882yield return getData("[A]() => { }", tests => tests.LambdaExpression_02());
883yield return getData("[A]async () => { }", tests => tests.LambdaExpression_02(SyntaxKind.AsyncKeyword));
884yield return getData("[A]static () => { }", tests => tests.LambdaExpression_02(SyntaxKind.StaticKeyword));
885yield return getData("[A]async static () => { }", tests => tests.LambdaExpression_02(SyntaxKind.AsyncKeyword, SyntaxKind.StaticKeyword));
886yield return getData("[A]static async () => { }", tests => tests.LambdaExpression_02(SyntaxKind.StaticKeyword, SyntaxKind.AsyncKeyword));
888yield return getData("[A] (x) => { }", tests => tests.LambdaExpression_03());
889yield return getData("[A] async (x) => { }", tests => tests.LambdaExpression_03(SyntaxKind.AsyncKeyword));
890yield return getData("[A] static (x) => { }", tests => tests.LambdaExpression_03(SyntaxKind.StaticKeyword));
891yield return getData("[A] async static (x) => { }", tests => tests.LambdaExpression_03(SyntaxKind.AsyncKeyword, SyntaxKind.StaticKeyword));
892yield return getData("[A] static async (x) => { }", tests => tests.LambdaExpression_03(SyntaxKind.StaticKeyword, SyntaxKind.AsyncKeyword));
894yield return getData("[A] (object x) => { }", tests => tests.LambdaExpression_04());
895yield return getData("[A] async (object x) => { }", tests => tests.LambdaExpression_04(SyntaxKind.AsyncKeyword));
896yield return getData("[A] static (object x) => { }", tests => tests.LambdaExpression_04(SyntaxKind.StaticKeyword));
897yield return getData("[A] async static (object x) => { }", tests => tests.LambdaExpression_04(SyntaxKind.AsyncKeyword, SyntaxKind.StaticKeyword));
898yield return getData("[A] static async (object x) => { }", tests => tests.LambdaExpression_04(SyntaxKind.StaticKeyword, SyntaxKind.AsyncKeyword));
900yield return getData("[A(B)]() => { }", tests => tests.LambdaExpression_05());
901yield return getData("[A, B]() => { }", tests => tests.LambdaExpression_06());
902yield return getData("[A][B]() => { }", tests => tests.LambdaExpression_07());
903yield return getData("[A] (ref int x) => ref x", tests => tests.LambdaExpression_08());
905yield return getData("[return: A] static x => x", tests => tests.LambdaExpression_09());
906yield return getData("([A] int x) => x", tests => tests.LambdaExpression_10());
907yield return getData("([A] out int x) => { }", tests => tests.LambdaExpression_11());
908yield return getData("([A] ref int x) => ref x", tests => tests.LambdaExpression_12());
909yield return getData("([A] x) => x", tests => tests.LambdaExpression_13());
910yield return getData("(int x, [A] int y) => x", tests => tests.LambdaExpression_14());