Parsing\LambdaAttributeParsingTests.cs (30)
883yield return getData("[A] x => x", tests => tests.LambdaExpression_01());
884yield return getData("[A] async x => x", tests => tests.LambdaExpression_01(SyntaxKind.AsyncKeyword));
885yield return getData("[A] static x => x", tests => tests.LambdaExpression_01(SyntaxKind.StaticKeyword));
886yield return getData("[A] async static x => x", tests => tests.LambdaExpression_01(SyntaxKind.AsyncKeyword, SyntaxKind.StaticKeyword));
887yield return getData("[A] static async x => x", tests => tests.LambdaExpression_01(SyntaxKind.StaticKeyword, SyntaxKind.AsyncKeyword));
889yield return getData("[A]() => { }", tests => tests.LambdaExpression_02());
890yield return getData("[A]async () => { }", tests => tests.LambdaExpression_02(SyntaxKind.AsyncKeyword));
891yield return getData("[A]static () => { }", tests => tests.LambdaExpression_02(SyntaxKind.StaticKeyword));
892yield return getData("[A]async static () => { }", tests => tests.LambdaExpression_02(SyntaxKind.AsyncKeyword, SyntaxKind.StaticKeyword));
893yield return getData("[A]static async () => { }", tests => tests.LambdaExpression_02(SyntaxKind.StaticKeyword, SyntaxKind.AsyncKeyword));
895yield return getData("[A] (x) => { }", tests => tests.LambdaExpression_03());
896yield return getData("[A] async (x) => { }", tests => tests.LambdaExpression_03(SyntaxKind.AsyncKeyword));
897yield return getData("[A] static (x) => { }", tests => tests.LambdaExpression_03(SyntaxKind.StaticKeyword));
898yield return getData("[A] async static (x) => { }", tests => tests.LambdaExpression_03(SyntaxKind.AsyncKeyword, SyntaxKind.StaticKeyword));
899yield return getData("[A] static async (x) => { }", tests => tests.LambdaExpression_03(SyntaxKind.StaticKeyword, SyntaxKind.AsyncKeyword));
901yield return getData("[A] (object x) => { }", tests => tests.LambdaExpression_04());
902yield return getData("[A] async (object x) => { }", tests => tests.LambdaExpression_04(SyntaxKind.AsyncKeyword));
903yield return getData("[A] static (object x) => { }", tests => tests.LambdaExpression_04(SyntaxKind.StaticKeyword));
904yield return getData("[A] async static (object x) => { }", tests => tests.LambdaExpression_04(SyntaxKind.AsyncKeyword, SyntaxKind.StaticKeyword));
905yield return getData("[A] static async (object x) => { }", tests => tests.LambdaExpression_04(SyntaxKind.StaticKeyword, SyntaxKind.AsyncKeyword));
907yield return getData("[A(B)]() => { }", tests => tests.LambdaExpression_05());
908yield return getData("[A, B]() => { }", tests => tests.LambdaExpression_06());
909yield return getData("[A][B]() => { }", tests => tests.LambdaExpression_07());
910yield return getData("[A] (ref int x) => ref x", tests => tests.LambdaExpression_08());
912yield return getData("[return: A] static x => x", tests => tests.LambdaExpression_09());
913yield return getData("([A] int x) => x", tests => tests.LambdaExpression_10());
914yield return getData("([A] out int x) => { }", tests => tests.LambdaExpression_11());
915yield return getData("([A] ref int x) => ref x", tests => tests.LambdaExpression_12());
916yield return getData("([A] x) => x", tests => tests.LambdaExpression_13());
917yield return getData("(int x, [A] int y) => x", tests => tests.LambdaExpression_14());