Skip to content

Internalize less-used public types #111

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

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Sources/WasmKit/Execution/Types/Value.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ import enum WasmParser.ValueType
/// <https://webassembly.github.io/spec/core/syntax/types.html#value-types>

/// Numeric types
public enum NumericType: Equatable {
enum NumericType: Equatable {
/// Integer value type.
case int(IntValueType)
/// Floating-point value type.
case float(FloatValueType)

/// 32-bit signed or unsigned integer.
public static let i32: Self = .int(.i32)
static let i32: Self = .int(.i32)
/// 64-bit signed or unsigned integer.
public static let i64: Self = .int(.i64)
static let i64: Self = .int(.i64)
/// 32-bit IEEE 754 floating-point number.
public static let f32: Self = .float(.f32)
static let f32: Self = .float(.f32)
/// 64-bit IEEE 754 floating-point number.
public static let f64: Self = .float(.f64)
static let f64: Self = .float(.f64)
}

extension WasmParser.ValueType {
Expand Down Expand Up @@ -207,7 +207,7 @@ extension Value: CustomStringConvertible {
/// <https://webassembly.github.io/spec/core/syntax/values.html#integers>

/// Integer value types
public enum IntValueType {
enum IntValueType {
/// 32-bit signed or unsigned integer.
case i32
/// 64-bit signed or unsigned integer.
Expand Down Expand Up @@ -262,7 +262,7 @@ extension RawSignedInteger {
/// <https://webassembly.github.io/spec/core/syntax/values.html#floating-point>

/// Floating-point value types
public enum FloatValueType {
enum FloatValueType {
/// 32-bit IEEE 754 floating-point number.
case f32
/// 64-bit IEEE 754 floating-point number.
Expand Down