Skip to content
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

Capitalize runtime filenames #7110

Merged
merged 2 commits into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
- Disable -bs-cross-module-opt for tests. https://github.com/rescript-lang/rescript-compiler/pull/7071
- Move `ounit_tests` into the `tests` folder. https://github.com/rescript-lang/rescript-compiler/pull/7096
- Move `syntax_tests` into the `tests` folder. https://github.com/rescript-lang/rescript-compiler/pull/7090 https://github.com/rescript-lang/rescript-compiler/pull/7097
- Capitalize runtime filenames. https://github.com/rescript-lang/rescript-compiler/pull/7110

# 12.0.0-alpha.3

Expand Down
2 changes: 1 addition & 1 deletion compiler/core/js_name_of_module_id.ml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ let get_runtime_module_path
module_system in
let js_file =
Ext_namespace.js_name_of_modulename dep_module_id.id.name
Little Literals.suffix_js in
Upper Literals.suffix_js in
match current_info_query with
| Package_not_found -> assert false
| Package_script ->
Expand Down
8 changes: 4 additions & 4 deletions lib/es6/array.js → lib/es6/Array.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


import * as List from "./list.js";
import * as Primitive_array from "./primitive_array.js";
import * as Primitive_exceptions from "./primitive_exceptions.js";
import * as List from "./List.js";
import * as Primitive_array from "./Primitive_array.js";
import * as Primitive_exceptions from "./Primitive_exceptions.js";

let init = ((length, f) => Array.from({ length }, f));

Expand Down Expand Up @@ -358,7 +358,7 @@ function sort(cmp, a) {
throw {
RE_EXN_ID: "Assert_failure",
_1: [
"array.res",
"Array.res",
294,
4
],
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions lib/es6/belt_Array.js → lib/es6/Belt_Array.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import * as Primitive_int from "./primitive_int.js";
import * as Primitive_option from "./primitive_option.js";
import * as Primitive_int from "./Primitive_int.js";
import * as Primitive_option from "./Primitive_option.js";

function get(arr, i) {
if (i >= 0 && i < arr.length) {
Expand All @@ -15,7 +15,7 @@ function getExn(arr, i) {
throw {
RE_EXN_ID: "Assert_failure",
_1: [
"belt_Array.res",
"Belt_Array.res",
36,
2
],
Expand All @@ -39,7 +39,7 @@ function setExn(arr, i, v) {
throw {
RE_EXN_ID: "Assert_failure",
_1: [
"belt_Array.res",
"Belt_Array.res",
49,
2
],
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions lib/es6/belt_HashMap.js → lib/es6/Belt_HashMap.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


import * as Primitive_option from "./primitive_option.js";
import * as Belt_internalBuckets from "./belt_internalBuckets.js";
import * as Belt_internalBucketsType from "./belt_internalBucketsType.js";
import * as Primitive_option from "./Primitive_option.js";
import * as Belt_internalBuckets from "./Belt_internalBuckets.js";
import * as Belt_internalBucketsType from "./Belt_internalBucketsType.js";

function size(h) {
return h.size;
Expand Down
8 changes: 4 additions & 4 deletions lib/es6/belt_HashMapInt.js → lib/es6/Belt_HashMapInt.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@


import * as Primitive_hash from "./primitive_hash.js";
import * as Primitive_option from "./primitive_option.js";
import * as Belt_internalBuckets from "./belt_internalBuckets.js";
import * as Belt_internalBucketsType from "./belt_internalBucketsType.js";
import * as Primitive_hash from "./Primitive_hash.js";
import * as Primitive_option from "./Primitive_option.js";
import * as Belt_internalBuckets from "./Belt_internalBuckets.js";
import * as Belt_internalBucketsType from "./Belt_internalBucketsType.js";

function copyBucketReHash(h_buckets, ndata_tail, _old_bucket) {
while (true) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@


import * as Primitive_hash from "./primitive_hash.js";
import * as Primitive_option from "./primitive_option.js";
import * as Belt_internalBuckets from "./belt_internalBuckets.js";
import * as Belt_internalBucketsType from "./belt_internalBucketsType.js";
import * as Primitive_hash from "./Primitive_hash.js";
import * as Primitive_option from "./Primitive_option.js";
import * as Belt_internalBuckets from "./Belt_internalBuckets.js";
import * as Belt_internalBucketsType from "./Belt_internalBucketsType.js";

function copyBucketReHash(h_buckets, ndata_tail, _old_bucket) {
while (true) {
Expand Down
4 changes: 2 additions & 2 deletions lib/es6/belt_HashSet.js → lib/es6/Belt_HashSet.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import * as Belt_internalSetBuckets from "./belt_internalSetBuckets.js";
import * as Belt_internalBucketsType from "./belt_internalBucketsType.js";
import * as Belt_internalSetBuckets from "./Belt_internalSetBuckets.js";
import * as Belt_internalBucketsType from "./Belt_internalBucketsType.js";

function copyBucket(hash, h_buckets, ndata_tail, _old_bucket) {
while (true) {
Expand Down
6 changes: 3 additions & 3 deletions lib/es6/belt_HashSetInt.js → lib/es6/Belt_HashSetInt.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


import * as Primitive_hash from "./primitive_hash.js";
import * as Belt_internalSetBuckets from "./belt_internalSetBuckets.js";
import * as Belt_internalBucketsType from "./belt_internalBucketsType.js";
import * as Primitive_hash from "./Primitive_hash.js";
import * as Belt_internalSetBuckets from "./Belt_internalSetBuckets.js";
import * as Belt_internalBucketsType from "./Belt_internalBucketsType.js";

function copyBucket(h_buckets, ndata_tail, _old_bucket) {
while (true) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


import * as Primitive_hash from "./primitive_hash.js";
import * as Belt_internalSetBuckets from "./belt_internalSetBuckets.js";
import * as Belt_internalBucketsType from "./belt_internalBucketsType.js";
import * as Primitive_hash from "./Primitive_hash.js";
import * as Belt_internalSetBuckets from "./Belt_internalSetBuckets.js";
import * as Belt_internalBucketsType from "./Belt_internalBucketsType.js";

function copyBucket(h_buckets, ndata_tail, _old_bucket) {
while (true) {
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions lib/es6/belt_List.js → lib/es6/Belt_List.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


import * as Belt_Array from "./belt_Array.js";
import * as Belt_SortArray from "./belt_SortArray.js";
import * as Primitive_option from "./primitive_option.js";
import * as Belt_Array from "./Belt_Array.js";
import * as Belt_SortArray from "./Belt_SortArray.js";
import * as Primitive_option from "./Primitive_option.js";

function head(x) {
if (x) {
Expand Down
2 changes: 1 addition & 1 deletion lib/es6/belt_Map.js → lib/es6/Belt_Map.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


import * as Belt_MapDict from "./belt_MapDict.js";
import * as Belt_MapDict from "./Belt_MapDict.js";

function fromArray(data, id) {
let cmp = id.cmp;
Expand Down
4 changes: 2 additions & 2 deletions lib/es6/belt_MapDict.js → lib/es6/Belt_MapDict.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import * as Primitive_option from "./primitive_option.js";
import * as Belt_internalAVLtree from "./belt_internalAVLtree.js";
import * as Primitive_option from "./Primitive_option.js";
import * as Belt_internalAVLtree from "./Belt_internalAVLtree.js";

function set(t, newK, newD, cmp) {
if (t === undefined) {
Expand Down
6 changes: 3 additions & 3 deletions lib/es6/belt_MapInt.js → lib/es6/Belt_MapInt.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


import * as Primitive_option from "./primitive_option.js";
import * as Belt_internalMapInt from "./belt_internalMapInt.js";
import * as Belt_internalAVLtree from "./belt_internalAVLtree.js";
import * as Primitive_option from "./Primitive_option.js";
import * as Belt_internalMapInt from "./Belt_internalMapInt.js";
import * as Belt_internalAVLtree from "./Belt_internalAVLtree.js";

function set(t, newK, newD) {
if (t === undefined) {
Expand Down
6 changes: 3 additions & 3 deletions lib/es6/belt_MapString.js → lib/es6/Belt_MapString.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


import * as Primitive_option from "./primitive_option.js";
import * as Belt_internalAVLtree from "./belt_internalAVLtree.js";
import * as Belt_internalMapString from "./belt_internalMapString.js";
import * as Primitive_option from "./Primitive_option.js";
import * as Belt_internalAVLtree from "./Belt_internalAVLtree.js";
import * as Belt_internalMapString from "./Belt_internalMapString.js";

function set(t, newK, newD) {
if (t === undefined) {
Expand Down
4 changes: 2 additions & 2 deletions lib/es6/belt_MutableMap.js → lib/es6/Belt_MutableMap.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import * as Primitive_option from "./primitive_option.js";
import * as Belt_internalAVLtree from "./belt_internalAVLtree.js";
import * as Primitive_option from "./Primitive_option.js";
import * as Belt_internalAVLtree from "./Belt_internalAVLtree.js";

function removeMutateAux(nt, x, cmp) {
let k = nt.k;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


import * as Primitive_option from "./primitive_option.js";
import * as Belt_internalMapInt from "./belt_internalMapInt.js";
import * as Belt_internalAVLtree from "./belt_internalAVLtree.js";
import * as Primitive_option from "./Primitive_option.js";
import * as Belt_internalMapInt from "./Belt_internalMapInt.js";
import * as Belt_internalAVLtree from "./Belt_internalAVLtree.js";

function make() {
return {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


import * as Primitive_option from "./primitive_option.js";
import * as Belt_internalAVLtree from "./belt_internalAVLtree.js";
import * as Belt_internalMapString from "./belt_internalMapString.js";
import * as Primitive_option from "./Primitive_option.js";
import * as Belt_internalAVLtree from "./Belt_internalAVLtree.js";
import * as Belt_internalMapString from "./Belt_internalMapString.js";

function make() {
return {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


import * as Primitive_option from "./primitive_option.js";
import * as Primitive_option from "./Primitive_option.js";

function make() {
return {
Expand Down
6 changes: 3 additions & 3 deletions lib/es6/belt_MutableSet.js → lib/es6/Belt_MutableSet.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


import * as Primitive_int from "./primitive_int.js";
import * as Belt_SortArray from "./belt_SortArray.js";
import * as Belt_internalAVLset from "./belt_internalAVLset.js";
import * as Primitive_int from "./Primitive_int.js";
import * as Belt_SortArray from "./Belt_SortArray.js";
import * as Belt_internalAVLset from "./Belt_internalAVLset.js";

function remove0(nt, x, cmp) {
let k = nt.v;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@


import * as Primitive_int from "./primitive_int.js";
import * as Belt_SortArrayInt from "./belt_SortArrayInt.js";
import * as Belt_internalAVLset from "./belt_internalAVLset.js";
import * as Belt_internalSetInt from "./belt_internalSetInt.js";
import * as Primitive_int from "./Primitive_int.js";
import * as Belt_SortArrayInt from "./Belt_SortArrayInt.js";
import * as Belt_internalAVLset from "./Belt_internalAVLset.js";
import * as Belt_internalSetInt from "./Belt_internalSetInt.js";

function remove0(nt, x) {
let k = nt.v;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@


import * as Primitive_int from "./primitive_int.js";
import * as Belt_internalAVLset from "./belt_internalAVLset.js";
import * as Belt_SortArrayString from "./belt_SortArrayString.js";
import * as Belt_internalSetString from "./belt_internalSetString.js";
import * as Primitive_int from "./Primitive_int.js";
import * as Belt_internalAVLset from "./Belt_internalAVLset.js";
import * as Belt_SortArrayString from "./Belt_SortArrayString.js";
import * as Belt_internalSetString from "./Belt_internalSetString.js";

function remove0(nt, x) {
let k = nt.v;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


import * as Primitive_option from "./primitive_option.js";
import * as Primitive_option from "./Primitive_option.js";

function make() {
return {
Expand Down
2 changes: 1 addition & 1 deletion lib/es6/belt_Option.js → lib/es6/Belt_Option.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


import * as Primitive_option from "./primitive_option.js";
import * as Primitive_option from "./Primitive_option.js";

function keep(opt, p) {
if (opt !== undefined && p(Primitive_option.valFromOption(opt))) {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/es6/belt_Set.js → lib/es6/Belt_Set.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


import * as Belt_SetDict from "./belt_SetDict.js";
import * as Belt_SetDict from "./Belt_SetDict.js";

function fromArray(data, id) {
let cmp = id.cmp;
Expand Down
2 changes: 1 addition & 1 deletion lib/es6/belt_SetDict.js → lib/es6/Belt_SetDict.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


import * as Belt_internalAVLset from "./belt_internalAVLset.js";
import * as Belt_internalAVLset from "./Belt_internalAVLset.js";

function add(t, x, cmp) {
if (t === undefined) {
Expand Down
4 changes: 2 additions & 2 deletions lib/es6/belt_SetInt.js → lib/es6/Belt_SetInt.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import * as Belt_internalAVLset from "./belt_internalAVLset.js";
import * as Belt_internalSetInt from "./belt_internalSetInt.js";
import * as Belt_internalAVLset from "./Belt_internalAVLset.js";
import * as Belt_internalSetInt from "./Belt_internalSetInt.js";

function add(t, x) {
if (t === undefined) {
Expand Down
4 changes: 2 additions & 2 deletions lib/es6/belt_SetString.js → lib/es6/Belt_SetString.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import * as Belt_internalAVLset from "./belt_internalAVLset.js";
import * as Belt_internalSetString from "./belt_internalSetString.js";
import * as Belt_internalAVLset from "./Belt_internalAVLset.js";
import * as Belt_internalSetString from "./Belt_internalSetString.js";

function add(t, x) {
if (t === undefined) {
Expand Down
2 changes: 1 addition & 1 deletion lib/es6/belt_SortArray.js → lib/es6/Belt_SortArray.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


import * as Belt_Array from "./belt_Array.js";
import * as Belt_Array from "./Belt_Array.js";

function sortedLengthAuxMore(xs, _prec, _acc, len, lt) {
while (true) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


import * as Belt_Array from "./belt_Array.js";
import * as Belt_Array from "./Belt_Array.js";

function sortedLengthAuxMore(xs, _prec, _acc, len) {
while (true) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


import * as Belt_Array from "./belt_Array.js";
import * as Belt_Array from "./Belt_Array.js";

function sortedLengthAuxMore(xs, _prec, _acc, len) {
while (true) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


import * as Primitive_int from "./primitive_int.js";
import * as Belt_SortArray from "./belt_SortArray.js";
import * as Primitive_option from "./primitive_option.js";
import * as Primitive_int from "./Primitive_int.js";
import * as Belt_SortArray from "./Belt_SortArray.js";
import * as Primitive_option from "./Primitive_option.js";

function copy(n) {
if (n !== undefined) {
Expand Down Expand Up @@ -353,7 +353,7 @@ function checkInvariantInternal(_v) {
throw {
RE_EXN_ID: "Assert_failure",
_1: [
"belt_internalAVLset.res",
"Belt_internalAVLset.res",
310,
4
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


import * as Primitive_int from "./primitive_int.js";
import * as Belt_SortArray from "./belt_SortArray.js";
import * as Primitive_option from "./primitive_option.js";
import * as Primitive_int from "./Primitive_int.js";
import * as Belt_SortArray from "./Belt_SortArray.js";
import * as Primitive_option from "./Primitive_option.js";

function treeHeight(n) {
if (n !== undefined) {
Expand Down Expand Up @@ -550,7 +550,7 @@ function checkInvariantInternal(_v) {
throw {
RE_EXN_ID: "Assert_failure",
_1: [
"belt_internalAVLtree.res",
"Belt_internalAVLtree.res",
439,
4
],
Expand Down
Loading