Skip to content
This repository was archived by the owner on May 19, 2018. It is now read-only.

Decorators Stage 2 Parsing #587

Merged
merged 14 commits into from
Jun 22, 2017
Merged
Prev Previous commit
Next Next commit
Reorganize tests and add tests
Add tests for static properties and private properties
  • Loading branch information
peey committed Jun 17, 2017
commit b60ac52ae6aff84b56645f15137d85616fba9cc2

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class A {
@dec name = 0
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class A {
@dec #name = 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"plugins": ["classProperties", "classPrivateProperties", "decoratorsStage2"],
"throws": "Stage 2 decorators may only be used with a class or a class method (2:7)"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class A {
@dec static name = 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"plugins": ["classProperties", "decoratorsStage2"],
"throws": "Stage 2 decorators may only be used with a class or a class method (2:7)"
}