Skip to content

Commit

Permalink
fix(jsii): assert not allowed as interface member (#3553)
Browse files Browse the repository at this point in the history
---

By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
  • Loading branch information
rix0rrr committed May 19, 2022
1 parent 46e40c9 commit f3fec0c
Show file tree
Hide file tree
Showing 9 changed files with 4,138 additions and 576 deletions.
56 changes: 56 additions & 0 deletions packages/jsii-calc/lib/compliance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,62 @@ export class JavaReservedWords {
public while = 'hello';
}

// https://en.wikipedia.org/wiki/List_of_Java_keywords
export interface IJavaReservedWordsInAnInterface {
abstract(): void;
assert(): void;
boolean(): void;
break(): void;
byte(): void;
case(): void;
catch(): void;
char(): void;
class(): void;
const(): void;
continue(): void;
default(): void;
double(): void;
do(): void;
else(): void;
enum(): void;
extends(): void;
false(): void;
final(): void;
finally(): void;
float(): void;
for(): void;
goto(): void;
if(): void;
implements(): void;
import(): void;
instanceof(): void;
int(): void;
interface(): void;
long(): void;
native(): void;
null(): void;
package(): void;
private(): void;
protected(): void;
public(): void;
return(): void;
short(): void;
static(): void;
strictfp(): void;
super(): void;
switch(): void;
synchronized(): void;
this(): void;
throw(): void;
throws(): void;
transient(): void;
true(): void;
try(): void;
void(): void;
volatile(): void;
readonly while: string;
}

export class PythonReservedWords {
public and() {
return;
Expand Down
Loading

0 comments on commit f3fec0c

Please sign in to comment.