Skip to content

Add nullability annotations in generated code #346

@ris58h

Description

@ris58h

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 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions