Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 1.65 KB

File metadata and controls

23 lines (21 loc) · 1.65 KB

Keywords

abstract2 dynamic2 implements2 show1
as2 else import2 static2
asser enum in super
async1 export2 interface2 switch
await3 extends is sync1
break external2 library2 this
case factory2 mixin2 throw
catch false new true
class final null try
const finally on1 typedef2
continue for operator2 var
covariant2 Function2 part2 void
default get2 rethrow while
deferred2 hide1 return with
do if set2 yield3
  • 带有上标1的单词是上下文关键字,仅在特定位置具有含义。它们无处不在是有效的标识符。

  • 带有上标2的单词是内置标识符。为了简化将JavaScript代码移植到Dart的任务,这些关键字在大多数地方都是有效的标识符,但它们不能用作类或类型名称,也不能用作导入前缀。

  • 带有上标3的单词是与Dart 1.0发布后添加的异步支持相关的更新,有限的保留字。您不能在标记为async,async *或sync *的任何函数体中使用await或yield作为标识符 表中的所有其他单词都是保留字,不能是标识符。