










0, 0xff, 0b10_01, .1
'x', "x\n\uffff\Uffffffff", `x{1}y`
true, false, null
[0, 1..8, 2...3, 3..-=1..1]
{x: 0, ...obj}
x => x + 1
<T> (x: T, y) => { }
<Float>0, <RegExp>'\w+', <X>[1, 2]
x, \x, \0, _
+, -, *, /, mod, ^
==, !=, <, >, <=, >=
&, |, !
??, !
=, +=, -=, *=, /=, &=, |=, ??=, ->
++, --
as, is, X<Y>
this, super
x.y, x?.y, x[y], x[^1, ^0]
fn(p: x, y)
new X()
x ? y : z
x match {0 => 1, 1 => 0}
arr ~ sum
(x)
any, void
0, 0xff, 0b10_01, .1
'x', "x\n\uffff\Uffffffff", `x{1}y`
true, false, null
[X, Y]
{x: X, y: Y}
(x: X) => Y
new() => X
1..10, 2...10
X, \X, X.Y, $import("path").X
X<Y>
X[]
&, |, -
this
X is infer T ? T : Y
(X)
x := 0;
x: number = 0;
get accessor { return 0 }
set accessor { print(value) }
function fn<T>(x, y: T, z = 1, ...rest) => 0;
class X: Y {
field = 0;
get accessor => 0
set accessor { field = value; }
new() { }
method<T>(p: T) { }
plus(p) { }
explicit as Z() { }
}
interface X { }
enum X { x, y = 1 }
type X = Y;
extension X { }
module X { }
module "name" {}
if (x) { }
if (x) { } else { }
while (x) { }
break;
continue;
return x;
yield x;
try { } catch { } finally { }
throw "Error";
assert true;
fn();
;
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。