go_types/lib.rs
1// Copyright 2022 The Goscript Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//! This crate is part of the Goscript project. Please refer to <https://goscript.dev> for more information.
6//!
7//! It's a port of the the parser from the Go standard library <https://github.com/golang/go/tree/release-branch.go1.12/src/go/types>
8//!
9//! # Feature
10//! - `btree_map`: Make it use BTreeMap instead of HashMap
11//!
12
13mod constant;
14mod obj;
15mod package;
16mod scope;
17#[macro_use]
18mod objects;
19mod display;
20mod importer;
21mod lookup;
22mod operand;
23mod selection;
24mod universe;
25
26#[macro_use]
27pub mod typ;
28pub mod check;
29
30pub use constant::Value as ConstValue;
31pub use display::Displayer;
32pub use importer::*;
33pub use obj::*;
34pub use objects::*;
35pub use operand::OperandMode;
36pub use selection::*;
37pub use universe::*;