ECMA 408-2015 Dart Programming Language Specification (4th Edition).pdf
《ECMA 408-2015 Dart Programming Language Specification (4th Edition).pdf》由会员分享,可在线阅读,更多相关《ECMA 408-2015 Dart Programming Language Specification (4th Edition).pdf(152页珍藏版)》请在麦多课文档分享上搜索。
1、 Reference number ECMA-123:2009 Ecma International 2009 ECMA-408 3rd Edition / June 2015 Dart Programming Language Specification Ecma International 2015 iii This Ecma Standard has been adopted by the General Assembly of June 2015. “COPYRIGHT NOTICE 2015 Ecma International This document may be copied
2、, published and distributed to others, and certain derivative works of it may be prepared, copied, published, and distributed, in whole or in part, provided that the above copyright notice and this Copyright License and Disclaimer are included on all such copies and derivative works. The only deriva
3、tive works that are permissible under this Copyright License and Disclaimer are: (i) works which incorporate all or portion of this document for the purpose of providing commentary or explanation (such as an annotated version of the document), (ii) works which incorporate all or portion of this docu
4、ment for the purpose of incorporating features that provide accessibility, (iii) translations of this document into languages other than English and into different formats and (iv) works by making use of this specification in standard conformant products by implementing (e.g. by copy and paste wholl
5、y or partly) the functionality therein. However, the content of this document itself may not be modified in any way, including by removing the copyright notice or references to Ecma International, except as required to translate it into languages other than English or into a different format. The of
6、ficial version of an Ecma International document is the English language version on the Ecma International website. In the event of discrepancies between a translated version and the official version, the official version shall govern. The limited permissions granted above are perpetual and will not
7、 be revoked by Ecma International or its successors or assigns. This document and the information contained herein is provided on an “AS IS“ basis and ECMA INTERNATIONAL DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WIL
8、L NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.“ iv Ecma International 2015 Dart Programming Language SpecificationVersion 1.9April 15, 2015Contents1 Scope 62 Conformance 63 Normative References 64 Terms and Definitions 65 Notatio
9、n 66 Overview 86.1 Scoping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96.2 Privacy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116.3 Concurrency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 Errors and Warnings 118 Variables 128.1 Evaluation o
10、f Implicit Variable Getters . . . . . . . . . . . . . . . 169 Functions 169.1 Function Declarations . . . . . . . . . . . . . . . . . . . . . . . . 189.2 Formal Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 199.2.1 Required Formals . . . . . . . . . . . . . . . . . . . . . . . 209.2
11、.2 Optional Formals . . . . . . . . . . . . . . . . . . . . . . . 209.3 Type of a Function . . . . . . . . . . . . . . . . . . . . . . . . . . 219.4 External Functions . . . . . . . . . . . . . . . . . . . . . . . . . . 2210 Classes 2210.1 Instance Methods . . . . . . . . . . . . . . . . . . . . . .
12、 . . . . . 2410.1.1 Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . 2510.2 Getters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26110.3 Setters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2710.4 Abstract Instance Members . . . . . . . . . . .
13、. . . . . . . . . . 2710.5 Instance Variables . . . . . . . . . . . . . . . . . . . . . . . . . . 2810.6 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2910.6.1 Generative Constructors . . . . . . . . . . . . . . . . . . . 2910.6.2 Factories . . . . . . . . . . . . . . . . .
14、. . . . . . . . . . 3310.6.3 Constant Constructors . . . . . . . . . . . . . . . . . . . . 3410.7 Static Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3610.8 Static Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3710.9 Superclasses . . . . . . . . . . . . . . . .
15、 . . . . . . . . . . . . . . 3710.9.1 Inheritance and Overriding . . . . . . . . . . . . . . . . . 3710.10 Superinterfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4011 Interfaces 4111.1 Superinterfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4111.1.1 Inheritance and O
16、verriding . . . . . . . . . . . . . . . . . 4112 Mixins 4312.1 Mixin Application . . . . . . . . . . . . . . . . . . . . . . . . . . 4312.2 Mixin Composition . . . . . . . . . . . . . . . . . . . . . . . . . . 4413 Enums 4514 Generics 4515 Metadata 4716 Expressions 4716.0.1 Object Identity . . . . .
17、 . . . . . . . . . . . . . . . . . . . 4816.1 Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4916.2 Null . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5216.3 Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5216.4 Booleans . . . .
18、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5416.4.1 Boolean Conversion . . . . . . . . . . . . . . . . . . . . . 5416.5 Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5516.5.1 String Interpolation . . . . . . . . . . . . . . . . . . . . . 5816.6 Symbols . . .
19、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5916.7 Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5916.8 Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6116.9 Throw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
20、216.10 Function Expressions . . . . . . . . . . . . . . . . . . . . . . . . 6316.11 This . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6516.12 Instance Creation . . . . . . . . . . . . . . . . . . . . . . . . . . 6516.12.1 New . . . . . . . . . . . . . . . . . . . . . . . . . .
21、 . . . . 6516.12.2 Const . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6716.13 Spawning an Isolate . . . . . . . . . . . . . . . . . . . . . . . . . 6916.14 Function Invocation . . . . . . . . . . . . . . . . . . . . . . . . . 69216.14.1 Actual Argument List Evaluation . . . . . . . . .
22、. . . . 7116.14.2 Binding Actuals to Formals . . . . . . . . . . . . . . . . . 7216.14.3 Unqualified Invocation . . . . . . . . . . . . . . . . . . . 7216.14.4 Function Expression Invocation . . . . . . . . . . . . . . 7316.15 Lookup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
23、16.15.1 Method Lookup . . . . . . . . . . . . . . . . . . . . . . . 7416.15.2 Getter and Setter Lookup . . . . . . . . . . . . . . . . . 7416.16 Top level Getter Invocation . . . . . . . . . . . . . . . . . . . . . 7416.17 Method Invocation . . . . . . . . . . . . . . . . . . . . . . . . . . 7416.17
24、.1 Ordinary Invocation . . . . . . . . . . . . . . . . . . . . . 7416.17.2 Cascaded Invocations . . . . . . . . . . . . . . . . . . . . 7616.17.3 Super Invocation . . . . . . . . . . . . . . . . . . . . . . . 7716.17.4 Sending Messages . . . . . . . . . . . . . . . . . . . . . . . 7816.18 Property E
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ECMA4082015DARTPROGRAMMINGLANGUAGESPECIFICATION4THEDITIONPDF

链接地址:http://www.mydoc123.com/p-704841.html