waside 0.1.0

An AST for WebAssembly that supports decoding, encoding, and printing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::ast::const_expr::ConstExpr;
use crate::Span;

/// A global entry.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Global {
    /// Source span.
    pub span: Span,
    /// The global's value type and mutability.
    pub ty: wasmparser::GlobalType,
    /// Constant expression used to initialize the global.
    pub init_expr: ConstExpr,
}