Skip to content

修改各个库中all方法的修饰符 #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion language/go/lib/CallableExpr.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema CallableExpr extends Expr {
impl CallableExpr {
@data_constraint
@inline
fn __all__(db: GoDB) -> *CallableExpr {
pub fn __all__(db: GoDB) -> *CallableExpr {
for (e in Expr(db)) {
if (e.isCallorconversionExpr()) {
yield CallableExpr {
Expand Down
6 changes: 3 additions & 3 deletions language/go/lib/Comment.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Comment extends Node {
impl Comment {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Comment {
pub fn __all__(db: GoDB) -> *Comment {
for (tmp in Node(db)) {
for (c in CommentDO(db)) {
if (tmp.key_eq(c)) {
Expand All @@ -22,7 +22,7 @@ schema CommentGroup extends Node {
impl CommentGroup {
@data_constraint
@inline
fn __all__(db: GoDB) -> *CommentGroup {
pub fn __all__(db: GoDB) -> *CommentGroup {
for (tmp in Node(db)) {
for (c in CommentGroupDO(db)) {
if (tmp.key_eq(c)) {
Expand All @@ -40,7 +40,7 @@ schema DocComment extends Node {
impl DocComment {
@data_constraint
@inline
fn __all__(db: GoDB) -> *DocComment {
pub fn __all__(db: GoDB) -> *DocComment {
for (tmp in Node(db)) {
for (d in DocCommentDO(db)) {
if (tmp.key_eq(d)) {
Expand Down
6 changes: 3 additions & 3 deletions language/go/lib/Declaration.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Decl extends Node {
impl Decl {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Decl {
pub fn __all__(db: GoDB) -> *Decl {
for (tmp in Node(db)) {
for (d in DeclDO(db)) {
if (tmp.key_eq(d)) {
Expand Down Expand Up @@ -107,7 +107,7 @@ schema ConstDecl extends Decl {
impl ConstDecl {
@data_constraint
@inline
fn __all__(db: GoDB) -> *ConstDecl {
pub fn __all__(db: GoDB) -> *ConstDecl {
for (tmp in Decl(db)) {
for (d in DeclDO(db)) {
if (tmp.key_eq(d)) {
Expand All @@ -127,7 +127,7 @@ schema VarDecl extends Decl {
impl VarDecl {
@data_constraint
@inline
fn __all__(db: GoDB) -> *VarDecl {
pub fn __all__(db: GoDB) -> *VarDecl {
for (tmp in Decl(db)) {
for (d in DeclDO(db)) {
if (tmp.key_eq(d)) {
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/Expression.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Expr extends Node {
impl Expr {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Expr {
pub fn __all__(db: GoDB) -> *Expr {
for (e in ExprDO(db)) {
yield Expr {
id : e.oid
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/Fields.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Fields extends Node {
impl Fields {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Fields {
pub fn __all__(db: GoDB) -> *Fields {
for (f in FieldsDO(db)) {
yield Fields {
id : f.oid
Expand Down
4 changes: 2 additions & 2 deletions language/go/lib/File.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema File extends Node {
impl File {
@data_constraint
@inline
fn __all__(db: GoDB) -> *File {
pub fn __all__(db: GoDB) -> *File {
for (f in FileDO(db)) {
yield File {
id : f.oid
Expand Down Expand Up @@ -112,7 +112,7 @@ schema GoFile extends File {
impl GoFile {
@data_constraint
@inline
fn __all__(db: GoDB) -> *GoFile {
pub fn __all__(db: GoDB) -> *GoFile {
for (f in File(db)) {
if (f.isGoFile()) {
yield GoFile {
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/FileData.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema FileData extends FileDataDO {
impl FileData {
@data_constraint
@inline
fn __all__(db: GoDB) -> *FileData {
pub fn __all__(db: GoDB) -> *FileData {
for (tmp in FileDataDO(db)) {
yield FileData {
oid : tmp.oid,
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/ForStmt.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema ForStmt extends Statement {
impl ForStmt {
@data_constraint
@inline
fn __all__(db: GoDB) -> *ForStmt {
pub fn __all__(db: GoDB) -> *ForStmt {
for (tmp in Statement(db)) {
for (s in Statement(db)) {
if (tmp = s) {
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/Function.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Function extends Node {
impl Function {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Function {
pub fn __all__(db: GoDB) -> *Function {
for (tmp in Node(db)) {
for (d in Decl(db)) {
if (d.key_eq(tmp)) {
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/Location.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Location extends LocationDO {
impl Location {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Location {
pub fn __all__(db: GoDB) -> *Location {
for (tmp in LocationDO(db)) {
yield Location {
oid : tmp.oid,
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/Method.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Method extends Function {
impl Method {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Method {
pub fn __all__(db: GoDB) -> *Method {
for (f in Function(db)) {
if (f.isMethod()) {
yield Method {
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/Mod.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Mod extends ModFileDO {
impl Mod {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Mod {
pub fn __all__(db: GoDB) -> *Mod {
for (tmp in ModFileDO(db)) {
yield Mod {
oid : tmp.oid,
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/Node.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Node {
impl Node {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Node {
pub fn __all__(db: GoDB) -> *Node {
for (d in DeclDO(db)) {
yield Node {id : d.oid}
}
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/Packages.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Pkg extends PkgDO {
impl Pkg {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Pkg {
pub fn __all__(db: GoDB) -> *Pkg {
for (tmp in PkgDO(db)) {
yield Pkg {
oid : tmp.oid,
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/Receiver.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Receiver extends Method {
impl Receiver {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Receiver {
pub fn __all__(db: GoDB) -> *Receiver {
for (m in Method(db)) {
yield Receiver {
id : m.id
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/ReternStmt.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema ReturnStmt extends Statement {
impl ReturnStmt {
@data_constraint
@inline
fn __all__(db: GoDB) -> *ReturnStmt {
pub fn __all__(db: GoDB) -> *ReturnStmt {
for (s in Statement(db)) {
if (s.isReturnStmt()) {
yield ReturnStmt {
Expand Down
4 changes: 2 additions & 2 deletions language/go/lib/SelectorExpr.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Selector extends Expr {
impl Selector {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Selector {
pub fn __all__(db: GoDB) -> *Selector {
for (tmp in Expr(db)) {
yield Selector {
id : tmp.id
Expand Down Expand Up @@ -32,7 +32,7 @@ schema SelectorExpr extends Expr {
impl SelectorExpr {
@data_constraint
@inline
fn __all__(db: GoDB) -> *SelectorExpr {
pub fn __all__(db: GoDB) -> *SelectorExpr {
for (e in Expr(db)) {
if (e.isSelectorExpr()) {
yield SelectorExpr {
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/SliceExpr.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema SliceExpr extends Expr {
impl SliceExpr {
@data_constraint
@inline
fn __all__(db: GoDB) -> *SliceExpr {
pub fn __all__(db: GoDB) -> *SliceExpr {
for (e in Expr(db)) {
if (e.isSliceExpr()) {
yield SliceExpr {
Expand Down
10 changes: 5 additions & 5 deletions language/go/lib/Spec.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Spec extends Node {
impl Spec {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Spec {
pub fn __all__(db: GoDB) -> *Spec {
for (s in SpecDO(db)) {
yield Spec {
id : s.oid
Expand Down Expand Up @@ -80,7 +80,7 @@ schema ImportSpec extends Spec {
impl ImportSpec {
@data_constraint
@inline
fn __all__(db: GoDB) -> *ImportSpec {
pub fn __all__(db: GoDB) -> *ImportSpec {
for (s in Spec(db)) {
if (s.isImportSpec()) {
yield ImportSpec {
Expand Down Expand Up @@ -118,7 +118,7 @@ schema TypeSpec extends Spec {
impl TypeSpec {
@data_constraint
@inline
fn __all__(db: GoDB) -> *TypeSpec {
pub fn __all__(db: GoDB) -> *TypeSpec {
for (s in Spec(db)) {
if (s.isTypedefSpec()) {
yield TypeSpec {
Expand All @@ -145,7 +145,7 @@ schema ValueSpec extends Spec {
impl ValueSpec {
@data_constraint
@inline
fn __all__(db: GoDB) -> *ValueSpec {
pub fn __all__(db: GoDB) -> *ValueSpec {
for (s in Spec(db)) {
if (s.isValueSpec()) {
yield ValueSpec {
Expand Down Expand Up @@ -239,7 +239,7 @@ schema LocalVaribleDecl extends Decl {
impl LocalVaribleDecl {
@data_constraint
@inline
fn __all__(db: GoDB) -> *LocalVaribleDecl {
pub fn __all__(db: GoDB) -> *LocalVaribleDecl {
for (d in Decl(db)) {
if (d.isLocalVaribleDecl()) {
yield LocalVaribleDecl {
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/Statement.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Statement extends Node {
impl Statement {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Statement {
pub fn __all__(db: GoDB) -> *Statement {
for (tmp in Node(db)) {
for (s in StmtDO(db)) {
if (tmp.key_eq(s)) {
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/Type.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Type extends TypeDO {
impl Type {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Type {
pub fn __all__(db: GoDB) -> *Type {
for (tmp in TypeDO(db)) {
yield Type {
oid : tmp.oid,
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/Utils.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema RuntimeInfo extends RuntimeInfoDO {
impl RuntimeInfo {
@data_constraint
@inline
fn __all__(db: GoDB) -> *RuntimeInfo {
pub fn __all__(db: GoDB) -> *RuntimeInfo {
for (tmp in RuntimeInfoDO(db)) {
yield RuntimeInfo {
oid : tmp.oid,
Expand Down
2 changes: 1 addition & 1 deletion language/go/lib/VariableUtils.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema DefineStmt extends Statement {
impl DefineStmt {
@data_constraint
@inline
fn __all__(db: GoDB) -> *DefineStmt {
pub fn __all__(db: GoDB) -> *DefineStmt {
for (s in Statement(db)) {
if (s.isDefineStmt()) {
yield DefineStmt {
Expand Down
8 changes: 4 additions & 4 deletions language/go/lib/Variables.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema Literal extends LiteralDO {
impl Literal {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Literal {
pub fn __all__(db: GoDB) -> *Literal {
for (tmp in LiteralDO(db)) {
yield Literal {
oid : tmp.oid,
Expand All @@ -28,7 +28,7 @@ schema Variables extends Literal {
impl Variables {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Variables {
pub fn __all__(db: GoDB) -> *Variables {
for (tmp in Literal(db)) {
yield Variables {
oid : tmp.oid,
Expand Down Expand Up @@ -72,7 +72,7 @@ schema IOTALiteral extends Literal {
impl IOTALiteral {
@data_constraint
@inline
fn __all__(db: GoDB) -> *IOTALiteral {
pub fn __all__(db: GoDB) -> *IOTALiteral {
for (tmp in Literal(db)) {
if (tmp.getValue() = "iota") {
yield IOTALiteral {
Expand All @@ -91,7 +91,7 @@ schema TypeName extends TypeNameDO {
impl TypeName {
@data_constraint
@inline
fn __all__(db: GoDB) -> *TypeName {
pub fn __all__(db: GoDB) -> *TypeName {
for (tmp in TypeNameDO(db)) {
yield TypeName {
oid : tmp.oid,
Expand Down
8 changes: 4 additions & 4 deletions language/go/lib/Writable.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema IncDecStmt extends Statement {
impl IncDecStmt {
@data_constraint
@inline
fn __all__(db: GoDB) -> *IncDecStmt {
pub fn __all__(db: GoDB) -> *IncDecStmt {
for (s in Statement(db)) {
if (s.isIncStmt()) {
yield IncDecStmt {
Expand All @@ -25,7 +25,7 @@ schema AssignmentStmt extends Statement {
impl AssignmentStmt {
@data_constraint
@inline
fn __all__(db: GoDB) -> *AssignmentStmt {
pub fn __all__(db: GoDB) -> *AssignmentStmt {
for (s in Statement(db)) {
if (s.isAssignStmt()) {
yield AssignmentStmt {
Expand Down Expand Up @@ -128,7 +128,7 @@ schema Writable extends Node {
impl Writable {
@data_constraint
@inline
fn __all__(db: GoDB) -> *Writable {
pub fn __all__(db: GoDB) -> *Writable {
for (n in Node(db)) {
for (s in IncDecStmt(db)) {
if (s.key_eq(n)) {
Expand Down Expand Up @@ -178,7 +178,7 @@ schema WritesField {
impl WritesField {
@data_constraint
@inline
fn __all__(db: GoDB) -> *WritesField {
pub fn __all__(db: GoDB) -> *WritesField {
for (e in Expr(db)) {
if (e.isSelectorExpr()) {
yield WritesField {id : e.id}
Expand Down
Loading