mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-23 14:35:12 +00:00
Move some logic into HeaderFor
This commit is contained in:
parent
24f2fcc28a
commit
12a7b51eb4
2 changed files with 10 additions and 1 deletions
|
@ -4468,6 +4468,10 @@ fn send_header_two<'a>(
|
|||
config_shorthand: opt_shorthand.unwrap_or_default(),
|
||||
platform_main_type: requires[0].value,
|
||||
main_for_host,
|
||||
opt_app_module_id,
|
||||
provides,
|
||||
requires,
|
||||
requires_types,
|
||||
};
|
||||
|
||||
let mut package_qualified_imported_modules = MutSet::default();
|
||||
|
|
|
@ -5,7 +5,7 @@ use crate::parser::{optional, then};
|
|||
use crate::parser::{specialize, word1, EPackageEntry, EPackageName, Parser};
|
||||
use crate::string_literal;
|
||||
use bumpalo::collections::Vec;
|
||||
use roc_module::symbol::Symbol;
|
||||
use roc_module::symbol::{ModuleId, Symbol};
|
||||
use roc_region::all::Loc;
|
||||
use std::fmt::Debug;
|
||||
|
||||
|
@ -23,6 +23,11 @@ pub enum HeaderFor<'a> {
|
|||
generates_with: &'a [Symbol],
|
||||
},
|
||||
Platform {
|
||||
opt_app_module_id: Option<ModuleId>,
|
||||
provides: &'a [Loc<ExposedName<'a>>],
|
||||
requires: &'a [Loc<TypedIdent<'a>>],
|
||||
requires_types: &'a [Loc<UppercaseIdent<'a>>],
|
||||
|
||||
/// usually `pf`
|
||||
config_shorthand: &'a str,
|
||||
/// the type scheme of the main function (required by the platform)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue