Skip to content

Commit

Permalink
Refactor(compiler_base): refactor struct Session. (#209)
Browse files Browse the repository at this point in the history
make fields in struct `Session` from 'private' to 'public'.

issue #115
  • Loading branch information
zong-zhe authored Sep 19, 2022
1 parent 29a91df commit 0d9b52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler_base/session/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use std::sync::Arc;
/// Note: TODO(zongz): This is a WIP structure.
/// Currently only contains the part related to error diagnostic displaying.
pub struct Session {
sm: Arc<SourceMap>,
diag_handler: Arc<DiagnosticHandler>,
pub sm: Arc<SourceMap>,
pub diag_handler: Arc<DiagnosticHandler>,
}

impl Session {
Expand Down

0 comments on commit 0d9b52f

Please sign in to comment.