Skip to content

Commit 6b5433f

Browse files
authored
Merge pull request #24 from codefuse-ai/cxy_develop
修改各个库中all方法的修饰符
2 parents e3faf08 + f380cf6 commit 6b5433f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+1093
-1083
lines changed

language/go/lib/CallableExpr.gdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema CallableExpr extends Expr {
44
impl CallableExpr {
55
@data_constraint
66
@inline
7-
fn __all__(db: GoDB) -> *CallableExpr {
7+
pub fn __all__(db: GoDB) -> *CallableExpr {
88
for (e in Expr(db)) {
99
if (e.isCallorconversionExpr()) {
1010
yield CallableExpr {

language/go/lib/Comment.gdl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema Comment extends Node {
44
impl Comment {
55
@data_constraint
66
@inline
7-
fn __all__(db: GoDB) -> *Comment {
7+
pub fn __all__(db: GoDB) -> *Comment {
88
for (tmp in Node(db)) {
99
for (c in CommentDO(db)) {
1010
if (tmp.key_eq(c)) {
@@ -22,7 +22,7 @@ schema CommentGroup extends Node {
2222
impl CommentGroup {
2323
@data_constraint
2424
@inline
25-
fn __all__(db: GoDB) -> *CommentGroup {
25+
pub fn __all__(db: GoDB) -> *CommentGroup {
2626
for (tmp in Node(db)) {
2727
for (c in CommentGroupDO(db)) {
2828
if (tmp.key_eq(c)) {
@@ -40,7 +40,7 @@ schema DocComment extends Node {
4040
impl DocComment {
4141
@data_constraint
4242
@inline
43-
fn __all__(db: GoDB) -> *DocComment {
43+
pub fn __all__(db: GoDB) -> *DocComment {
4444
for (tmp in Node(db)) {
4545
for (d in DocCommentDO(db)) {
4646
if (tmp.key_eq(d)) {

language/go/lib/Declaration.gdl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema Decl extends Node {
44
impl Decl {
55
@data_constraint
66
@inline
7-
fn __all__(db: GoDB) -> *Decl {
7+
pub fn __all__(db: GoDB) -> *Decl {
88
for (tmp in Node(db)) {
99
for (d in DeclDO(db)) {
1010
if (tmp.key_eq(d)) {
@@ -107,7 +107,7 @@ schema ConstDecl extends Decl {
107107
impl ConstDecl {
108108
@data_constraint
109109
@inline
110-
fn __all__(db: GoDB) -> *ConstDecl {
110+
pub fn __all__(db: GoDB) -> *ConstDecl {
111111
for (tmp in Decl(db)) {
112112
for (d in DeclDO(db)) {
113113
if (tmp.key_eq(d)) {
@@ -127,7 +127,7 @@ schema VarDecl extends Decl {
127127
impl VarDecl {
128128
@data_constraint
129129
@inline
130-
fn __all__(db: GoDB) -> *VarDecl {
130+
pub fn __all__(db: GoDB) -> *VarDecl {
131131
for (tmp in Decl(db)) {
132132
for (d in DeclDO(db)) {
133133
if (tmp.key_eq(d)) {

language/go/lib/Expression.gdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema Expr extends Node {
44
impl Expr {
55
@data_constraint
66
@inline
7-
fn __all__(db: GoDB) -> *Expr {
7+
pub fn __all__(db: GoDB) -> *Expr {
88
for (e in ExprDO(db)) {
99
yield Expr {
1010
id : e.oid

language/go/lib/Fields.gdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema Fields extends Node {
44
impl Fields {
55
@data_constraint
66
@inline
7-
fn __all__(db: GoDB) -> *Fields {
7+
pub fn __all__(db: GoDB) -> *Fields {
88
for (f in FieldsDO(db)) {
99
yield Fields {
1010
id : f.oid

language/go/lib/File.gdl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema File extends Node {
44
impl File {
55
@data_constraint
66
@inline
7-
fn __all__(db: GoDB) -> *File {
7+
pub fn __all__(db: GoDB) -> *File {
88
for (f in FileDO(db)) {
99
yield File {
1010
id : f.oid
@@ -112,7 +112,7 @@ schema GoFile extends File {
112112
impl GoFile {
113113
@data_constraint
114114
@inline
115-
fn __all__(db: GoDB) -> *GoFile {
115+
pub fn __all__(db: GoDB) -> *GoFile {
116116
for (f in File(db)) {
117117
if (f.isGoFile()) {
118118
yield GoFile {

language/go/lib/FileData.gdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema FileData extends FileDataDO {
44
impl FileData {
55
@data_constraint
66
@inline
7-
fn __all__(db: GoDB) -> *FileData {
7+
pub fn __all__(db: GoDB) -> *FileData {
88
for (tmp in FileDataDO(db)) {
99
yield FileData {
1010
oid : tmp.oid,

language/go/lib/ForStmt.gdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema ForStmt extends Statement {
44
impl ForStmt {
55
@data_constraint
66
@inline
7-
fn __all__(db: GoDB) -> *ForStmt {
7+
pub fn __all__(db: GoDB) -> *ForStmt {
88
for (tmp in Statement(db)) {
99
for (s in Statement(db)) {
1010
if (tmp = s) {

language/go/lib/Function.gdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema Function extends Node {
44
impl Function {
55
@data_constraint
66
@inline
7-
fn __all__(db: GoDB) -> *Function {
7+
pub fn __all__(db: GoDB) -> *Function {
88
for (tmp in Node(db)) {
99
for (d in Decl(db)) {
1010
if (d.key_eq(tmp)) {

language/go/lib/Location.gdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema Location extends LocationDO {
44
impl Location {
55
@data_constraint
66
@inline
7-
fn __all__(db: GoDB) -> *Location {
7+
pub fn __all__(db: GoDB) -> *Location {
88
for (tmp in LocationDO(db)) {
99
yield Location {
1010
oid : tmp.oid,

0 commit comments

Comments
 (0)