Skip to content

Commit e93b7a7

Browse files
Added tests.
1 parent 2cb0dfd commit e93b7a7

7 files changed

Lines changed: 57 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
var declare: number;
3+
var module: string;
4+
5+
declare // this is the identifier 'declare'
6+
module // this is the identifier 'module'
7+
"my external module" // this is just a string
8+
{ } // this is a block body
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
var declare: number;
3+
var module: string;
4+
5+
module container {
6+
declare // this is the identifier 'declare'
7+
module // this is the identifier 'module'
8+
"my external module" // this is just a string
9+
{ } // this is a block body
10+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
var namespace: number;
3+
var n: string;
4+
5+
namespace // this is the identifier 'namespace'
6+
n // this is the identifier 'n'
7+
{ } // this is a block body
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
var module: number;
3+
var m: string;
4+
5+
module // this is the identifier 'namespace'
6+
m // this is the identifier 'm'
7+
{ } // this is a block body
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
var namespace: number;
3+
var n: string;
4+
5+
namespace container {
6+
namespace // this is the identifier 'namespace'
7+
n // this is the identifier 'n'
8+
{ } // this is a block body
9+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
var type;
3+
var string;
4+
var Foo;
5+
6+
type
7+
Foo = string;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
var type;
3+
var string;
4+
var Foo;
5+
6+
namespace container {
7+
type
8+
Foo = string;
9+
}

0 commit comments

Comments
 (0)