Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HashMap<HirId, AttributeMap> #387

Open
KisaragiEffective opened this issue Apr 4, 2024 · 1 comment
Open

HashMap<HirId, AttributeMap> #387

KisaragiEffective opened this issue Apr 4, 2024 · 1 comment

Comments

@KisaragiEffective
Copy link
Owner

HirId ... Expr に対応する構文木を指す識別子
AttributeMap ... Expr が持つ属性を格納する連想配列

例:

fn a(b: Option<i32>) -> i32 {
    b.unwrap()
}

// map: { HirId!(a.b): AttributeMap { MayPanic: true, SideEffect: false } }
@KisaragiEffective
Copy link
Owner Author

設計がだるいので当面はHashMap<SomeEnum, Box>にする

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant