From bf4d18b55dd80c030fbe7711746d353a951ada26 Mon Sep 17 00:00:00 2001 From: mertcandav Date: Mon, 9 Dec 2024 14:01:02 +0300 Subject: [PATCH] std/jule/parser: rename the Ast field as AST of FileInfo --- std/jule/importer/importer.jule | 4 ++-- std/jule/parser/parse.jule | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/std/jule/importer/importer.jule b/std/jule/importer/importer.jule index 7cf605296..f7f5288b6 100644 --- a/std/jule/importer/importer.jule +++ b/std/jule/importer/importer.jule @@ -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 } @@ -132,7 +132,7 @@ impl sema::Importer for Importer { continue } - asts = append(asts, finfo.Ast) + asts = append(asts, finfo.AST) } ret asts, nil diff --git a/std/jule/parser/parse.jule b/std/jule/parser/parse.jule index 7d2c2e6bc..f524c3b5b 100644 --- a/std/jule/parser/parse.jule +++ b/std/jule/parser/parse.jule @@ -8,7 +8,7 @@ use "std/jule/token" // Stores information about file parsing. struct FileInfo { - Ast: &ast::AST + AST: &ast::AST Errors: []build::Log } @@ -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 }