Skip to content

Commit b59141d

Browse files
authored
BREAKING CHANGE(cto): change syntax of ImportTypes statements (#508)
Signed-off-by: Matt Roberts <[email protected]>
1 parent 98fac38 commit b59141d

25 files changed

+981
-2462
lines changed

packages/concerto-analysis/test/fixtures/field-namespace-changed-a.cto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
22

3-
import { Bar } from [email protected]
3+
import [email protected].{ Bar }
44

55
concept Thing {
66
o Bar bar

packages/concerto-analysis/test/fixtures/field-namespace-changed-b.cto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
22

3-
import { Bar } from [email protected]
3+
import [email protected].{ Bar }
44

55
concept Thing {
66
o Bar bar

packages/concerto-analysis/test/fixtures/field-namespace-changed-major-b.cto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
22

3-
import { Bar } from [email protected]
3+
import [email protected].{ Bar }
44

55
concept Thing {
66
o Bar bar

packages/concerto-analysis/test/fixtures/field-namespace-changed-minor-b.cto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
22

3-
import { Bar } from [email protected]
3+
import [email protected].{ Bar }
44

55
concept Thing {
66
o Bar bar

packages/concerto-analysis/test/fixtures/field-namespace-changed-patch-b.cto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
22

3-
import { Bar } from [email protected]
3+
import [email protected].{ Bar }
44

55
concept Thing {
66
o Bar bar

packages/concerto-analysis/test/fixtures/identical.cto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
22

3-
import { OtherThing } from [email protected]
3+
import [email protected].{ OtherThing }
44

55
concept Thing {
66
o String value

packages/concerto-cli/test/models/version-a.cto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
1616

17-
import { Zoo } from [email protected]
17+
import [email protected].{ Zoo }
1818

1919
concept Foo {
2020
o Zoo zoo

packages/concerto-cli/test/models/version-b.cto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
1616

17-
import { Boo } from [email protected]
17+
import [email protected].{ Boo }
1818

1919
concept Zoo {
2020
o String bar
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
22

3-
import { Person, Phone} from [email protected]
3+
import [email protected].{ Person, Phone}
44

55
concept Employee extends Person {
66
o String name
77
o Phone phone
8-
}
8+
}

packages/concerto-core/test/introspect/modelfile.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ describe('ModelFile', () => {
273273
concept Chocolate {}`;
274274

275275
const acme = `namespace [email protected]
276-
import { Chocolate } from [email protected]
277-
import { Chocolate } from [email protected]
276+
import [email protected].{ Chocolate }
277+
import [email protected].{ Chocolate }
278278
`;
279279

280280
let modelFile1 = ParserUtil.newModelFile(myModelManager, freddo1);
@@ -300,8 +300,8 @@ describe('ModelFile', () => {
300300
concept Chocolate {}`;
301301

302302
const acme = `namespace [email protected]
303-
import { Chocolate } from org.freddos
304-
import { Chocolate } from [email protected]
303+
import org.freddos.{ Chocolate }
304+
import [email protected].{ Chocolate }
305305
`;
306306

307307
let modelFile1 = ParserUtil.newModelFile(myModelManager, freddo1);

0 commit comments

Comments
 (0)