mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Move Full from fmt to parse and reorganize confusingly-named Module ast type
This commit is contained in:
parent
698bbc3cf1
commit
d25c048d48
47 changed files with 1759 additions and 1776 deletions
|
@ -2,7 +2,7 @@ use bumpalo::Bump;
|
|||
use criterion::{black_box, criterion_group, criterion_main, Criterion};
|
||||
use roc_parse::{
|
||||
ast::Defs,
|
||||
module::{self, parse_module_defs},
|
||||
header::{self, parse_module_defs},
|
||||
state::State,
|
||||
};
|
||||
use std::path::PathBuf;
|
||||
|
@ -20,7 +20,7 @@ pub fn parse_benchmark(c: &mut Criterion) {
|
|||
let arena = Bump::new();
|
||||
|
||||
let (_actual, state) =
|
||||
module::parse_header(&arena, State::new(src.as_bytes())).unwrap();
|
||||
header::parse_header(&arena, State::new(src.as_bytes())).unwrap();
|
||||
|
||||
let res = parse_module_defs(&arena, state, Defs::default()).unwrap();
|
||||
|
||||
|
@ -41,7 +41,7 @@ pub fn parse_benchmark(c: &mut Criterion) {
|
|||
let arena = Bump::new();
|
||||
|
||||
let (_actual, state) =
|
||||
module::parse_header(&arena, State::new(src.as_bytes())).unwrap();
|
||||
header::parse_header(&arena, State::new(src.as_bytes())).unwrap();
|
||||
|
||||
let res = parse_module_defs(&arena, state, Defs::default()).unwrap();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue