| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT. | 5 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT. |
| 6 // | 6 // |
| 7 // Instead modify 'pkg/front_end/messages.yaml' and run | 7 // Instead modify 'pkg/front_end/messages.yaml' and run |
| 8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update. | 8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update. |
| 9 | 9 |
| 10 part of fasta.codes; | 10 part of fasta.codes; |
| (...skipping 1895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1906 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1906 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1907 const Code<Null> codeNamedFunctionExpression = messageNamedFunctionExpression; | 1907 const Code<Null> codeNamedFunctionExpression = messageNamedFunctionExpression; |
| 1908 | 1908 |
| 1909 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1909 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1910 const MessageCode messageNamedFunctionExpression = const MessageCode( | 1910 const MessageCode messageNamedFunctionExpression = const MessageCode( |
| 1911 "NamedFunctionExpression", | 1911 "NamedFunctionExpression", |
| 1912 dart2jsCode: "*ignored*", | 1912 dart2jsCode: "*ignored*", |
| 1913 message: r"""A function expression can't have a name."""); | 1913 message: r"""A function expression can't have a name."""); |
| 1914 | 1914 |
| 1915 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1915 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1916 const Code<Null> codeNativeClauseShouldBeAnnotation = |
| 1917 messageNativeClauseShouldBeAnnotation; |
| 1918 |
| 1919 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1920 const MessageCode messageNativeClauseShouldBeAnnotation = const MessageCode( |
| 1921 "NativeClauseShouldBeAnnotation", |
| 1922 analyzerCode: "NATIVE_CLAUSE_SHOULD_BE_ANNOTATION", |
| 1923 dart2jsCode: "*fatal*", |
| 1924 message: r"""Native clause in this form is deprecated.""", |
| 1925 tip: |
| 1926 r"""Try removing this native clause and adding @native() or @native('nat
ive-name') before the declaration."""); |
| 1927 |
| 1928 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1916 const Template< | 1929 const Template< |
| 1917 Message Function(Token token)> templateNoFormals = const Template< | 1930 Message Function(Token token)> templateNoFormals = const Template< |
| 1918 Message Function(Token token)>( | 1931 Message Function(Token token)>( |
| 1919 messageTemplate: r"""A function should have formal parameters.""", | 1932 messageTemplate: r"""A function should have formal parameters.""", |
| 1920 tipTemplate: | 1933 tipTemplate: |
| 1921 r"""Try adding '()' after '#lexeme', or add 'get' before '#lexeme' to de
clare a getter.""", | 1934 r"""Try adding '()' after '#lexeme', or add 'get' before '#lexeme' to de
clare a getter.""", |
| 1922 withArguments: _withArgumentsNoFormals); | 1935 withArguments: _withArgumentsNoFormals); |
| 1923 | 1936 |
| 1924 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1937 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1925 const Code<Message Function(Token token)> codeNoFormals = | 1938 const Code<Message Function(Token token)> codeNoFormals = |
| (...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3084 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); | 3097 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); |
| 3085 | 3098 |
| 3086 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 3099 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 3087 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; | 3100 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; |
| 3088 | 3101 |
| 3089 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 3102 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 3090 const MessageCode messageYieldNotGenerator = const MessageCode( | 3103 const MessageCode messageYieldNotGenerator = const MessageCode( |
| 3091 "YieldNotGenerator", | 3104 "YieldNotGenerator", |
| 3092 dart2jsCode: "*ignored*", | 3105 dart2jsCode: "*ignored*", |
| 3093 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); | 3106 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); |
| OLD | NEW |