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

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

Issue 2267473002: Revert "Implement parsing support for generic functions" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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') | no next file with comments »
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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 kParameterMetadataOffset, 278 kParameterMetadataOffset,
279 kParameterEntrySize, 279 kParameterEntrySize,
280 }; 280 };
281 static RawObject* ParseFunctionParameters(const Function& func); 281 static RawObject* ParseFunctionParameters(const Function& func);
282 282
283 private: 283 private:
284 friend class EffectGraphVisitor; // For BuildNoSuchMethodArguments. 284 friend class EffectGraphVisitor; // For BuildNoSuchMethodArguments.
285 285
286 struct Block; 286 struct Block;
287 class TryStack; 287 class TryStack;
288 class TokenPosScope;
289 288
290 Parser(const Script& script, 289 Parser(const Script& script,
291 const Library& library, 290 const Library& library,
292 TokenPosition token_pos); 291 TokenPosition token_pos);
293 Parser(const Script& script, 292 Parser(const Script& script,
294 ParsedFunction* function, 293 ParsedFunction* function,
295 TokenPosition token_pos); 294 TokenPosition token_pos);
296 ~Parser(); 295 ~Parser();
297 296
298 // The function for which we will generate code. 297 // The function for which we will generate code.
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 SequenceNode* ParseNestedStatement(bool parsing_loop_body, 745 SequenceNode* ParseNestedStatement(bool parsing_loop_body,
747 SourceLabel* label); 746 SourceLabel* label);
748 void ParseStatementSequence(); 747 void ParseStatementSequence();
749 bool IsIdentifier(); 748 bool IsIdentifier();
750 bool IsSymbol(const String& symbol); 749 bool IsSymbol(const String& symbol);
751 bool IsSimpleLiteral(const AbstractType& type, Instance* value); 750 bool IsSimpleLiteral(const AbstractType& type, Instance* value);
752 bool IsFunctionTypeAliasName(); 751 bool IsFunctionTypeAliasName();
753 bool IsMixinAppAlias(); 752 bool IsMixinAppAlias();
754 bool TryParseQualIdent(); 753 bool TryParseQualIdent();
755 bool TryParseTypeParameters(); 754 bool TryParseTypeParameters();
756 bool TryParseTypeArguments();
757 bool IsTypeParameters();
758 bool IsArgumentPart();
759 bool IsParameterPart();
760 bool TryParseOptionalType(); 755 bool TryParseOptionalType();
761 bool TryParseReturnType(); 756 bool TryParseReturnType();
762 bool IsVariableDeclaration(); 757 bool IsVariableDeclaration();
763 bool IsFunctionReturnType();
764 bool IsFunctionDeclaration(); 758 bool IsFunctionDeclaration();
765 bool IsFunctionLiteral(); 759 bool IsFunctionLiteral();
766 bool IsForInStatement(); 760 bool IsForInStatement();
767 bool IsTopLevelAccessor(); 761 bool IsTopLevelAccessor();
768 762
769 AstNode* ParseBinaryExpr(int min_preced); 763 AstNode* ParseBinaryExpr(int min_preced);
770 LiteralNode* ParseConstExpr(); 764 LiteralNode* ParseConstExpr();
771 static const bool kRequireConst = true; 765 static const bool kRequireConst = true;
772 static const bool kAllowConst = false; 766 static const bool kAllowConst = false;
773 static const bool kConsumeCascades = true; 767 static const bool kConsumeCascades = true;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 967
974 intptr_t recursion_counter_; 968 intptr_t recursion_counter_;
975 friend class RecursionChecker; 969 friend class RecursionChecker;
976 970
977 DISALLOW_COPY_AND_ASSIGN(Parser); 971 DISALLOW_COPY_AND_ASSIGN(Parser);
978 }; 972 };
979 973
980 } // namespace dart 974 } // namespace dart
981 975
982 #endif // VM_PARSER_H_ 976 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698