Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(769)

Side by Side Diff: docs/language/dartLangSpec.tex

Issue 2882173002: Add comment about metadata syntax problem in static methods. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 \documentclass{article} 1 \documentclass{article}
2 \usepackage{epsfig} 2 \usepackage{epsfig}
3 \usepackage{color} 3 \usepackage{color}
4 \usepackage{dart} 4 \usepackage{dart}
5 \usepackage{bnf} 5 \usepackage{bnf}
6 \usepackage{hyperref} 6 \usepackage{hyperref}
7 \usepackage{lmodern} 7 \usepackage{lmodern}
8 \usepackage[T1]{fontenc} 8 \usepackage[T1]{fontenc}
9 \newcommand{\code}[1]{{\sf #1}} 9 \newcommand{\code}[1]{{\sf #1}}
10 \title{Dart Programming Language Specification \\ 10 \title{Dart Programming Language Specification \\
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 {\bf mixins:} 903 {\bf mixins:}
904 \WITH{} typeList 904 \WITH{} typeList
905 . 905 .
906 906
907 {\bf classMemberDefinition:}declaration `{\escapegrammar ;}' ; 907 {\bf classMemberDefinition:}declaration `{\escapegrammar ;}' ;
908 methodSignature functionBody 908 methodSignature functionBody
909 . 909 .
910 910
911 {\bf methodSignature:}constructorSignature initializers?; 911 {\bf methodSignature:}constructorSignature initializers?;
912 factoryConstructorSignature; 912 factoryConstructorSignature;
913 % This doesn't work: `static @override foo() => 42`, but `functionSignature` sta rts with metadata. https://github.com/dart-lang/sdk/issues/29614
913 \STATIC{}? functionSignature; 914 \STATIC{}? functionSignature;
914 \STATIC{}? getterSignature; 915 \STATIC{}? getterSignature;
915 \STATIC{}? setterSignature; 916 \STATIC{}? setterSignature;
916 operatorSignature 917 operatorSignature
917 . 918 .
918 919
919 {\bf declaration:}constantConstructorSignature (redirection $|$ initializers)?; 920 {\bf declaration:}constantConstructorSignature (redirection $|$ initializers)?;
920 constructorSignature (redirection $|$ initializers)?; 921 constructorSignature (redirection $|$ initializers)?;
921 \EXTERNAL{} constantConstructorSignature; 922 \EXTERNAL{} constantConstructorSignature;
922 \EXTERNAL{} constructorSignature; 923 \EXTERNAL{} constructorSignature;
923 ((\EXTERNAL{} \STATIC{}?))? getterSignature; 924 ((\EXTERNAL{} \STATIC{}?))? getterSignature;
924 ((\EXTERNAL{} \STATIC{}?))? setterSignature; 925 ((\EXTERNAL{} \STATIC{}?))? setterSignature;
925 \EXTERNAL{}? operatorSignature; 926 \EXTERNAL{}? operatorSignature;
927 % This doesn't work: `static @override foo() => 42`, but `functionSignature` sta rts with metadata. https://github.com/dart-lang/sdk/issues/29614
926 ((\EXTERNAL{} \STATIC{}?))? functionSignature; 928 ((\EXTERNAL{} \STATIC{}?))? functionSignature;
927 \STATIC{} (\FINAL{} $|$ \CONST{}) type? staticFinalDeclarationList; 929 \STATIC{} (\FINAL{} $|$ \CONST{}) type? staticFinalDeclarationList;
928 % \CONST{} type? staticFinalDeclarationList; 930 % \CONST{} type? staticFinalDeclarationList;
929 \FINAL{} type? initializedIdentifierList; 931 \FINAL{} type? initializedIdentifierList;
930 (\STATIC{} $|$ \COVARIANT{})? (\VAR{} $|$ type) initializedIdentifierList 932 (\STATIC{} $|$ \COVARIANT{})? (\VAR{} $|$ type) initializedIdentifierList
931 . 933 .
932 934
933 {\bf staticFinalDeclarationList:} 935 {\bf staticFinalDeclarationList:}
934 staticFinalDeclaration (`,' staticFinalDeclaration)* 936 staticFinalDeclaration (`,' staticFinalDeclaration)*
935 . 937 .
(...skipping 7222 matching lines...) Expand 10 before | Expand all | Expand 10 after
8158 8160
8159 The invariant that each normative paragraph is associated with a line 8161 The invariant that each normative paragraph is associated with a line
8160 containing the text \LMHash{} should be maintained. Extra occurrences 8162 containing the text \LMHash{} should be maintained. Extra occurrences
8161 of \LMHash{} can be added if needed, e.g., in order to make 8163 of \LMHash{} can be added if needed, e.g., in order to make
8162 individual \item{}s in itemized lists addressable. Each \LM.. command 8164 individual \item{}s in itemized lists addressable. Each \LM.. command
8163 must occur on a separate line. \LMHash{} must occur immediately 8165 must occur on a separate line. \LMHash{} must occur immediately
8164 before the associated paragraph, and \LMLabel must occur immediately 8166 before the associated paragraph, and \LMLabel must occur immediately
8165 after the associated \section{}, \subsection{} etc. 8167 after the associated \section{}, \subsection{} etc.
8166 8168
8167 ---------------------------------------------------------------------- 8169 ----------------------------------------------------------------------
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698