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

Side by Side Diff: runtime/vm/parser.h

Issue 2139003002: Tighten check disallowing use of initializing formals (fixes #26855). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #ifndef VM_PARSER_H_ 5 #ifndef VM_PARSER_H_
6 #define VM_PARSER_H_ 6 #define VM_PARSER_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 TokenPosition field_pos); 664 TokenPosition field_pos);
665 AstNode* ParseSuperOperator(); 665 AstNode* ParseSuperOperator();
666 AstNode* BuildUnarySuperOperator(Token::Kind op, PrimaryNode* super); 666 AstNode* BuildUnarySuperOperator(Token::Kind op, PrimaryNode* super);
667 667
668 static bool ParseFormalParameters(const Function& func, ParamList* params); 668 static bool ParseFormalParameters(const Function& func, ParamList* params);
669 669
670 void SetupDefaultsForOptionalParams(const ParamList& params); 670 void SetupDefaultsForOptionalParams(const ParamList& params);
671 ClosureNode* CreateImplicitClosureNode(const Function& func, 671 ClosureNode* CreateImplicitClosureNode(const Function& func,
672 TokenPosition token_pos, 672 TokenPosition token_pos,
673 AstNode* receiver); 673 AstNode* receiver);
674 static void AddFormalParamsToFunction(const ParamList* params, 674 void AddFormalParamsToFunction(const ParamList* params, const Function& func);
675 const Function& func);
676 void AddFormalParamsToScope(const ParamList* params, LocalScope* scope); 675 void AddFormalParamsToScope(const ParamList* params, LocalScope* scope);
677 676
678 SequenceNode* ParseConstructor(const Function& func); 677 SequenceNode* ParseConstructor(const Function& func);
679 SequenceNode* ParseFunc(const Function& func, bool check_semicolon); 678 SequenceNode* ParseFunc(const Function& func, bool check_semicolon);
680 679
681 void ParseNativeFunctionBlock(const ParamList* params, const Function& func); 680 void ParseNativeFunctionBlock(const ParamList* params, const Function& func);
682 681
683 SequenceNode* ParseInstanceGetter(const Function& func); 682 SequenceNode* ParseInstanceGetter(const Function& func);
684 SequenceNode* ParseInstanceSetter(const Function& func); 683 SequenceNode* ParseInstanceSetter(const Function& func);
685 SequenceNode* ParseStaticFinalGetter(const Function& func); 684 SequenceNode* ParseStaticFinalGetter(const Function& func);
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 1037
1039 intptr_t recursion_counter_; 1038 intptr_t recursion_counter_;
1040 friend class RecursionChecker; 1039 friend class RecursionChecker;
1041 1040
1042 DISALLOW_COPY_AND_ASSIGN(Parser); 1041 DISALLOW_COPY_AND_ASSIGN(Parser);
1043 }; 1042 };
1044 1043
1045 } // namespace dart 1044 } // namespace dart
1046 1045
1047 #endif // VM_PARSER_H_ 1046 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698