Skip to content

Commit

Permalink
std/jule/parser: rename the Ast field as AST of FileInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Dec 9, 2024
1 parent fab596a commit bf4d18b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions std/jule/importer/importer.jule
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl sema::Importer for Importer {
continue
}

r, mut logs := self.isPassBuildDirectives(finfo.Ast)
r, mut logs := self.isPassBuildDirectives(finfo.AST)
if len(logs) > 0 {
ret nil, logs
}
Expand All @@ -132,7 +132,7 @@ impl sema::Importer for Importer {
continue
}

asts = append(asts, finfo.Ast)
asts = append(asts, finfo.AST)
}

ret asts, nil
Expand Down
6 changes: 3 additions & 3 deletions std/jule/parser/parse.jule
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use "std/jule/token"

// Stores information about file parsing.
struct FileInfo {
Ast: &ast::AST
AST: &ast::AST
Errors: []build::Log
}

Expand All @@ -25,9 +25,9 @@ fn ParseFile(mut f: &token::Fileset): &FileInfo {
ret nil
}
mut finf := new(FileInfo)
finf.Ast, finf.Errors = parseFileset(f)
finf.AST, finf.Errors = parseFileset(f)
if len(finf.Errors) > 0 {
finf.Ast = nil
finf.AST = nil
}
ret finf
}
Expand Down

0 comments on commit bf4d18b

Please sign in to comment.