Skip to content

Commit

Permalink
Rewrite Kotlin APIs in Java
Browse files Browse the repository at this point in the history
  • Loading branch information
alancai98 committed Sep 23, 2024
1 parent 1a4e2de commit 8e1cba1
Show file tree
Hide file tree
Showing 237 changed files with 5,608 additions and 3,650 deletions.
423 changes: 201 additions & 222 deletions partiql-ast/api/partiql-ast.api

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions partiql-ast/src/main/java/org/partiql/ast/v1/AstNode.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.partiql.ast.v1;

import org.jetbrains.annotations.NotNull;

import java.util.Collection;
import java.util.Random;

/**
* TODO docs, equals, hashcode
*/
public abstract class AstNode {
@NotNull
public String tag = "Ast-" + String.format("%06x", new Random().nextInt());

@NotNull
public abstract Collection<AstNode> children();

public abstract <R, C> R accept(@NotNull AstVisitor<R, C> visitor, C ctx);
}
Loading

0 comments on commit 8e1cba1

Please sign in to comment.