Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nullability annotations in generated code #346

Open
ris58h opened this issue Jul 18, 2023 · 0 comments
Open

Add nullability annotations in generated code #346

ris58h opened this issue Jul 18, 2023 · 0 comments

Comments

@ris58h
Copy link

ris58h commented Jul 18, 2023

At least a return value of Factory#createElement is always non-null.

// ... enclosing class ...
class Factory {
  public static PsiElement createElement(ASTNode node) {
    IElementType type = node.getElementType();
    // if (type == ...
    throw new AssertionError("Unknown element type: " + type);
  }
}
// ... enclosing class ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant