Skip to content

Commit 87fdeb6

Browse files
committed
1 parent 64ac4bb commit 87fdeb6

File tree

1 file changed

+78
-2
lines changed
  • src/Linq2GraphQL.Generator/GraphQLSchema

1 file changed

+78
-2
lines changed

src/Linq2GraphQL.Generator/GraphQLSchema/Helpers.cs

Lines changed: 78 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,83 @@ internal static string SafeVariableName(string name)
2525
return newName;
2626
}
2727

28-
public static readonly HashSet<string> Keywords = ["event"];
28+
public static readonly HashSet<string> Keywords = [
29+
"abstract",
30+
"as",
31+
"base",
32+
"bool",
33+
"break",
34+
"byte",
35+
"case",
36+
"catch",
37+
"char",
38+
"checked",
39+
"class",
40+
"const",
41+
"continue",
42+
"decimal",
43+
"default",
44+
"delegate",
45+
"do",
46+
"double",
47+
"else",
48+
"enum",
49+
"event",
50+
"explicit",
51+
"extern",
52+
"false",
53+
"finally",
54+
"fixed",
55+
"float",
56+
"for",
57+
"foreach",
58+
"goto",
59+
"if",
60+
"implicit",
61+
"in",
62+
"int",
63+
"interface",
64+
"internal",
65+
"is",
66+
"lock",
67+
"long",
68+
"namespace",
69+
"new",
70+
"null",
71+
"object",
72+
"operator",
73+
"out",
74+
"override",
75+
"params",
76+
"private",
77+
"protected",
78+
"public",
79+
"readonly",
80+
"ref",
81+
"return",
82+
"sbyte",
83+
"sealed",
84+
"short",
85+
"sizeof",
86+
"static",
87+
"string",
88+
"struct",
89+
"switch",
90+
"this",
91+
"throw",
92+
"true",
93+
"try",
94+
"typeof",
95+
"uint",
96+
"ulong",
97+
"unchecked",
98+
"unsafe",
99+
"ushort",
100+
"using",
101+
"virtual",
102+
"void",
103+
"volatile",
104+
"while",];
29105

30106

31107
public static readonly Dictionary<string, (string Name, Type type)> TypeMapping =
@@ -47,5 +123,5 @@ internal static string SafeVariableName(string name)
47123
{ "Byte", new ValueTuple<string, Type>("byte", typeof(byte)) },
48124
};
49125

50-
126+
51127
}

0 commit comments

Comments
 (0)