@Override
	public boolean equals(Object obj) {
		if ( obj == this ) return true;
		if (!(obj instanceof AltLabelStructDecl)) return false;

		return name.equals(((AltLabelStructDecl)obj).name);
	}
A StructDecl to handle a -&gt; label on alt
tool/src/org/antlr/v4/codegen/model/decl/AltLabelStructDecl.java