Skip to content

Commit 57a5fe9

Browse files
committed
Renamed c::translation module to c::translate
1 parent f9b4f91 commit 57a5fe9

17 files changed

+10
-10
lines changed

Diff for: src/c/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ pub mod parser;
55
pub mod preprocessor;
66
pub mod punctuator;
77
pub mod token;
8-
pub mod translation;
8+
pub mod translate;
99

10-
pub use self::translation::translate_expr;
10+
pub use self::translate::translate_expr;

Diff for: src/c/parser/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use super::{
2424
},
2525
punctuator::Punctuator,
2626
token::{CToken, CTokenKind, Integer},
27-
translation::{declare_function, declare_named_declaration, TranslateCtx},
27+
translate::{declare_function, declare_named_declaration, TranslateCtx},
2828
};
2929
use crate::{
3030
ast::{AstFile, Type, TypeKind},
File renamed without changes.

Diff for: src/c/translation/expr/caster.rs renamed to src/c/translate/expr/caster.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::{
44
c::{
55
ast::expr::Caster,
66
parser::ParseError,
7-
translation::types::{build_type_specifier_qualifier, TypeBaseBuilder},
7+
translate::types::{build_type_specifier_qualifier, TypeBaseBuilder},
88
},
99
};
1010

Diff for: src/c/translation/expr/compound_literal.rs renamed to src/c/translate/expr/compound_literal.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use crate::{
44
c::{
55
ast::expr::{CompoundLiteral, Initializer},
66
parser::ParseError,
7+
translate::expr::caster::get_caster_type,
78
translate_expr,
8-
translation::expr::caster::get_caster_type,
99
},
1010
source_files::Source,
1111
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: src/c/translation/types/composite.rs renamed to src/c/translate/types/composite.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::{
66
Composite, CompositeKind, DeclarationSpecifiers, MemberDeclaration, MemberDeclarator,
77
},
88
parser::{error::ParseErrorKind, ParseError},
9-
translation::TranslateCtx,
9+
translate::TranslateCtx,
1010
},
1111
name::Name,
1212
};

Diff for: src/c/translation/types/decorate.rs renamed to src/c/translate/types/decorate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use crate::{
33
c::{
44
ast::{ArrayQualifier, FunctionQualifier, Pointer},
55
parser::ParseError,
6+
translate::TranslateCtx,
67
translate_expr,
7-
translation::TranslateCtx,
88
},
99
diagnostics::{Diagnostics, WarningDiagnostic},
1010
source_files::Source,

Diff for: src/c/translation/types/enumeration.rs renamed to src/c/translate/types/enumeration.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::{
33
c::{
44
ast::Enumeration,
55
parser::{error::ParseErrorKind, ParseError},
6-
translation::eval::evaluate_to_const_integer,
6+
translate::eval::evaluate_to_const_integer,
77
},
88
name::Name,
99
};

Diff for: src/c/translation/types/get_type_base.rs renamed to src/c/translate/types/get_type_base.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::{
33
c::{
44
ast::{DeclarationSpecifierKind, DeclarationSpecifiers},
55
parser::ParseError,
6-
translation::TranslateCtx,
6+
translate::TranslateCtx,
77
},
88
source_files::Source,
99
};
File renamed without changes.

Diff for: src/workspace/compile/c_code.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use crate::{
44
self,
55
lexer::lex_c_code,
66
preprocessor::{DefineKind, ObjMacro, Preprocessed},
7+
translate::TranslateCtx,
78
translate_expr,
8-
translation::TranslateCtx,
99
},
1010
compiler::Compiler,
1111
show::{into_show, Show},

0 commit comments

Comments
 (0)