Skip to content

Commit

Permalink
fix(python): IMprove DevExp of AstNode and Reference (#5257)
Browse files Browse the repository at this point in the history
* Make reference attrs public

* Export AstNode
  • Loading branch information
noanflaherty authored Nov 22, 2024
1 parent 3ad9fbe commit df3f3fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generators/python-v2/ast/src/Reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export declare namespace Reference {
export class Reference extends AstNode {
public readonly name: string;
public readonly modulePath: ModulePath;
private readonly genericTypes: AstNode[];
public readonly genericTypes: AstNode[];
public readonly alias: string | undefined;
private readonly attribute: AttrPath;
public readonly attribute: AttrPath;

constructor({ name, modulePath, genericTypes, alias, attribute }: Reference.Args) {
super();
Expand Down
1 change: 1 addition & 0 deletions generators/python-v2/ast/src/python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { PythonFile } from "./PythonFile";
import { Decorator } from "./Decorator";
import { Operator } from "./Operator";

export { AstNode } from "./core/AstNode";
export { Class } from "./Class";
export { Field } from "./Field";
export { Reference } from "./Reference";
Expand Down

0 comments on commit df3f3fb

Please sign in to comment.