Skip to content

Commit 6846867

Browse files
committed
juledoc: update to latest ast
1 parent 9b3fe63 commit 6846867

File tree

4 files changed

+0
-40
lines changed

4 files changed

+0
-40
lines changed

builder/builder.jule

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -229,15 +229,6 @@ impl Builder {
229229
}
230230
meta.Traits = append(meta.Traits, self.formatType(ast.Base))
231231
}
232-
for (_, mut s) in ast.Statics {
233-
if isPub(s.Ident) {
234-
mut node := ast::Node{
235-
Token: s.Token,
236-
Data: s,
237-
}
238-
meta.Statics = append(meta.Statics, self.node(node))
239-
}
240-
}
241232
for (_, mut m) in ast.Methods {
242233
if isPub(m.Ident) {
243234
mut node := ast::Node{

builder/formatter.jule

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,24 +1585,8 @@ fn isRanged(&e: &ast::Expr): bool {
15851585
ret false
15861586
}
15871587

1588-
fn isEmptyImpl(&imp: &ast::Impl): bool {
1589-
ret len(imp.Methods) == 0 && len(imp.Statics) == 0
1590-
}
1591-
15921588
fn cloneBuf(b: []byte): []byte {
15931589
mut rb := make([]byte, len(b))
15941590
copy(rb, b)
15951591
ret rb
1596-
}
1597-
1598-
fn isGroupStmt(stmt: ast::Stmt): bool {
1599-
match type stmt.Data {
1600-
| &ast::TypeAlias
1601-
| &ast::Var
1602-
| &ast::Assign
1603-
| &ast::Expr:
1604-
ret true
1605-
|:
1606-
ret false
1607-
}
16081592
}

doc/meta.jule

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ enum Meta: type {
1010
// Metadata for struct.
1111
struct MetaStruct {
1212
Traits: []str
13-
Statics: []&Doc
1413
Methods: []&Doc
1514
}

gen/markdown/markdown.jule

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -277,19 +277,6 @@ impl gen {
277277
}
278278
}
279279

280-
fn statics(mut &self, doc: []&doc::Doc) {
281-
for _, node in doc {
282-
self.out.WriteStr("\n\n")!
283-
self.pushJmp(node, 1)
284-
self.out.WriteStr("#### ")!
285-
self.out.WriteStr(node.Name)!
286-
self.out.WriteStr("\n```jule\n")!
287-
self.out.WriteStr(node.Code)!
288-
self.out.WriteStr("\n```\n")!
289-
self.gendoc(node)
290-
}
291-
}
292-
293280
fn methods(mut &self, doc: []&doc::Doc) {
294281
iter := fn(_static: bool) {
295282
for _, node in doc {
@@ -328,7 +315,6 @@ impl gen {
328315
}
329316
meta := (&doc::MetaStruct)(doc.Meta)
330317
self.implTraits(meta.Traits)
331-
self.statics(meta.Statics)
332318
self.methods(meta.Methods)
333319
}
334320

0 commit comments

Comments
 (0)