Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb04dc41

Browse files
committed
Reason V4 Feature [Allow multiple versions of Resaon]
Summary:This allows multiple versions of Reason in a single project byinferring and recording the version of syntax used into the file in anattribute. The attribute allows us to switch the parser and lexer on thefly. This attribute is not the only way we can infer the version, and wecan allow project level configuration, but this is the approach that isguaranteed to work with any build system or tooling.Test Plan:Reviewers:CC:
1 parent9486cfb commitb04dc41

File tree

84 files changed

+344
-604
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+344
-604
lines changed

‎docs/RELEASING.md‎

Lines changed: 21 additions & 3 deletions

‎formatTest/typeCheckedTests/expected_output/arityConversion.re‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[@reason.version3.7];
12
Some((1,2,3));
23

34
typebcd=

‎formatTest/typeCheckedTests/expected_output/attributes.4.04.0.re‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[@reason.version3.7];
12
/* Pexp_letexception with attributes*/
23
let()= {
34
[@attribute]

‎formatTest/typeCheckedTests/expected_output/attributes.re‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* This has a nice side effect when printing the terms:
88
* If a node has attributes attached to it,
99
*/;
10+
[@reason.version3.7];
1011

1112
/**Floating comment text should be removed*/;
1213

‎formatTest/typeCheckedTests/expected_output/attributes.rei‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.*/
22

33
/**Floating comment text should be removed*/;
4+
[@reason.version3.7];
5+
46
lettest:int;
57

68
/**

‎formatTest/typeCheckedTests/expected_output/basics.re‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[@reason.version3.7];
12
/* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.*/
23

34
letl=

‎formatTest/typeCheckedTests/expected_output/basics_no_semi.re‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[@reason.version3.7];
12
/* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.*/
23

34
letl=

‎formatTest/typeCheckedTests/expected_output/bigarraySyntax.re‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[@reason.version3.7];
12
/* https://github.com/facebook/reason/issues/2038*/
23
letmy_big_array1=
34
Bigarray.Array1.create(

‎formatTest/typeCheckedTests/expected_output/comments.re‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* **** comment*/
22
/*** comment*/
33
/** docstring*/;
4+
[@reason.version3.7];
5+
46
/* comment*/
57
/** docstring*/;
68
/*** comment*/

‎formatTest/typeCheckedTests/expected_output/comments.rei‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/***** comment*/
99

1010
/***/;
11+
[@reason.version3.7];
12+
1113
/****/
1214
/*****/
1315

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp