Skip to content

Commit

Permalink
move report module to utils
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS committed Jan 26, 2024
1 parent 9ee2d1b commit 9b6a14c
Show file tree
Hide file tree
Showing 28 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion lib/rivet/src/ast/Env.ri
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import std/{ sys, fs.Path };

import ../{ prefs, report, utils };
import ../{ prefs, utils/{self, report} };

#[boxed]
pub struct Env {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/ast/comptime.ri
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import std/sys;

import ../{ token, report };
import ../{ token, utils/report };

pub struct ComptimeIf {
mut branches: []mut ComptimeIfBranch;
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/builder/mod.ri
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import std/{
};

import ../{
ast, prefs, token, parser, report, checker, resolver, utils/{self, depgraph}
ast, prefs, token, parser, checker, resolver, utils/{self, depgraph, report}
};

pub struct Builder {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/checker/builtin_call.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, report };
import ../{ ast, utils/report };

extend Checker {
func check_builtin_call(^mut self, builtin_call: &mut ast.Expr.BuiltinCall) -> ^mut ast.Type {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/checker/call_expr.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, report, utils/maps };
import ../{ ast, utils/{maps, report} };

extend Checker {
func check_call(^mut self, call_expr: &mut ast.Expr.Call) -> ^mut ast.Type {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/checker/decls.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, report };
import ../{ ast, utils/report };

extend Checker {
func check_global_vars(^mut self, decls: []^mut ast.Decl) {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/checker/exprs.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, report };
import ../{ ast, utils/report };

extend Checker {
func check_expr(^mut self, expr: ^mut ast.Expr) -> ^mut ast.Type {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/checker/match_expr.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, utils, report, utils/maps };
import ../{ ast, utils/{self, report, maps} };

extend Checker {
const MATCH_EXHAUSTIVE_CUTOFF_LIMIT := 12;
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/checker/mod.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, token, utils, report };
import ../{ ast, token, utils/{self, report} };

enum LoopControlLegalityTracker {
None,
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/checker/mutability.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, token, report };
import ../{ ast, token, utils/report };

extend Checker {
func check_expr_is_mut(^self, expr: ^mut ast.Expr, from_assign: bool := false) {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/checker/name_cases.ri
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import std/traits;

import ../{ token, utils, report };
import ../{ token, utils/{self, report} };

extend Checker {
enum NameCase as uint8 < traits.Stringable {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/checker/stmts.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, token, report };
import ../{ ast, token, utils/report };

extend Checker {
func check_stmts(^mut self, stmts: []^mut ast.Stmt) {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/checker/trait_impl.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, token, report };
import ../{ ast, token, utils/report };

extend Checker {
func check_trait_impl(
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/checker/types.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, token, report };
import ../{ ast, token, utils/report };

#[boxed]
struct IncompatibleTypesError < Throwable {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/parser/decls.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, report, token };
import ../{ ast, utils/report, token };

extend Parser {
func parse_doc_comments(^mut self) -> []ast.Comment {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/parser/exprs.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, report, token };
import ../{ ast, utils/report, token };

extend Parser {
#[inline]
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/parser/import.ri
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import std/strings;

import ../{ ast, report, token };
import ../{ ast, utils/report, token };

extend Parser {
#[inline]
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/parser/mod.ri
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import std/fs.Path;

import ../{ ast, report, token, tokenizer };
import ../{ ast, utils/report, token, tokenizer };

#[boxed]
pub struct Parser {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/parser/stmts.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, report };
import ../{ ast, utils/report };

extend Parser {
func parse_stmt(^mut self) -> ^mut ast.Stmt {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/parser/types.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, report };
import ../{ ast, utils/report };

extend Parser {
func parse_type(^mut self) -> ^mut ast.Type {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/resolver/Register.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, report, token };
import ../{ ast, utils/report, token };

#[boxed]
pub struct Register {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/resolver/decls.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, report };
import ../{ ast, utils/report };

extend Resolver {
func resolve_decls(^mut self, decls: []^mut ast.Decl) {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/resolver/exprs.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, report, token };
import ../{ ast, utils/report, token };

extend Resolver {
func resolve_expr(^mut self, expr: ^mut ast.Expr) {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/resolver/mod.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, report, token };
import ../{ ast, utils/report, token };

import std/fs.Path;

Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/resolver/stmts.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, report };
import ../{ ast, utils/report };

extend Resolver {
func resolve_stmts(^mut self, stmts: []^mut ast.Stmt) {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/resolver/types.ri
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../{ ast, report };
import ../{ ast, utils/report };

extend Resolver {
func resolve_type(^mut self, type: ^mut ast.Type) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion lib/rivet/src/tokenizer/mod.ri
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import std/{ process, strings };

import ../{ ast, token, utils, report, utils.{LF, CR} };
import ../{ ast, token, utils/{self, report}, utils.{LF, CR} };

const NUM_SEP := b'_';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import std/{ traits, strings, console };

import ../{ prefs, token, utils };
import ../../{ prefs, token, utils };

pub var report_table := ^mut ReportTable();

Expand Down

0 comments on commit 9b6a14c

Please sign in to comment.