Dart-02: Language Tour
Dart-02-01   Important concepts
Dart-02-02   Keywords
Dart-02-03   Variables
Dart-02-04   Built-in types
Dart-02-05   Functions
Dart-02-06   Operators
Dart-02-07   Control flow statements
Dart-02-08   Exceptions
Dart-02-09   Classes
Dart-02-10   Generics
Dart-02-11   Libraries and visibility
Dart-02-12   Asynchrony support
Dart-02-13   Generators
Dart-02-14   Callable classes
Dart-02-15   Isolates
Dart-02-16   Typedefs
Dart-02-17   Metadata
Dart-02-18   Comments

Keywords

Dart - Keywords

             
abstract   else   import   show
as   enum   in   static
assert   export   interface   super
async   extends   is   switch
await   extension   late   sync
break   external   library   this
case   factory   mixin   throw
catch   false   new   true
class   final   null   try
const   finally   on   typedef
continue   for   operator   var
covariant   Function   part   void
default   get   required   while
deferred   hide   rethrow   with
do   if   return   yield
dynamic   implements   set    

Dart 언어가 특별하게 다루는 단어를 식별자로 사용하지 않아야 한다. 그러나 필요한 경우, 일부 keyword는 식별자가 될 수 있다.

  • 일부 단어는 특정 장소에서만 의미가 있는 contextual keyword이다. 이는 어디에서나 유효한 식별자이다.

  • 일부 단어는 built-in identifier이다. 이러한 keyword는 대부분의 위치에서 유효한 식별자이지만, class나 type 이름, import prefix로는 사용할 수 없다.

  • 일부 단어는 asynchrony support와 관련된 제한된 예약어이다. async, async*, sync*로 표기된 함수 body에서, awaityield는 식별자로 사용할 수 없다.

이외의 다른 모든 단어는 예약어(reserved words)이며, 식별자가 될 수 없다.

태그:

카테고리:

업데이트:

댓글남기기