blob: 09718882a9df6d92ed8aee95c4be643c847a9e21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
var JSIL = {};
JSIL.TypeNameParseState = function ()
{
this.input = 15;
this.pos = 0
};
JSIL.TypeNameParseState.prototype.substr = function (e)
{
return e;
};
JSIL.TypeNameParseState.prototype.moveNext = function ()
{
this.pos += 1;
return this.pos < this.input;
};
JSIL.TypeNameParseResult = function () {};
JSIL.ParseTypeNameImpl = function (n)
{
var i = new JSIL.TypeNameParseState()
var u = new JSIL.TypeNameParseResult;
while (i.moveNext())
{
if (n)
{
while (true)
u.assembly = 1
}
u.assembly = i.substr(i.pos + 1);
}
return u
};
var u = JSIL.ParseTypeNameImpl(false)
assertEq(u.assembly, 15)
|