rusty-javac 0.2.1

A Java compiler written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use javac_ty::Ty;
use std::collections::HashMap;
use ustr::Ustr;

#[derive(Clone, Default)]
pub(super) struct MethodScope {
    pub locals: HashMap<Ustr, Ty>,
    pub line: Option<u16>,
}

impl MethodScope {
    pub fn with_line(&self, line: Option<u16>) -> Self {
        let mut scope = self.clone();
        scope.line = line;
        scope
    }
}