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

Side by Side Diff: pkg/kernel/lib/ast.dart

Issue 2614663007: Revert "Non-format-changing kernel offset changes" (Closed)
Patch Set: Created 3 years, 11 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 | « pkg/kernel/lib/analyzer/loader.dart ('k') | pkg/kernel/lib/clone.dart » ('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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 /// ----------------------------------------------------------------------- 5 /// -----------------------------------------------------------------------
6 /// ERROR HANDLING 6 /// ERROR HANDLING
7 /// ----------------------------------------------------------------------- 7 /// -----------------------------------------------------------------------
8 /// 8 ///
9 /// As a rule of thumb, errors that can be detected statically are handled by 9 /// As a rule of thumb, errors that can be detected statically are handled by
10 /// the frontend, typically by translating the erroneous code into a 'throw' or 10 /// the frontend, typically by translating the erroneous code into a 'throw' or
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 // ------------------------------------------------------------------------ 491 // ------------------------------------------------------------------------
492 492
493 /// A indirect reference to a member, which can be updated to point at another 493 /// A indirect reference to a member, which can be updated to point at another
494 /// member at a later time. 494 /// member at a later time.
495 class _MemberAccessor { 495 class _MemberAccessor {
496 Member target; 496 Member target;
497 _MemberAccessor(this.target); 497 _MemberAccessor(this.target);
498 } 498 }
499 499
500 abstract class Member extends TreeNode { 500 abstract class Member extends TreeNode {
501 /// End offset in the source file it comes from. Valid values are from 0 and
502 /// up, or -1 ([TreeNode.noOffset]) if the file end offset is not available
503 /// (this is the default if none is specifically set).
504 int fileEndOffset = TreeNode.noOffset;
505
506 /// List of metadata annotations on the member. 501 /// List of metadata annotations on the member.
507 /// 502 ///
508 /// This defaults to an immutable empty list. Use [addAnnotation] to add 503 /// This defaults to an immutable empty list. Use [addAnnotation] to add
509 /// annotations if needed. 504 /// annotations if needed.
510 List<Expression> annotations = const <Expression>[]; 505 List<Expression> annotations = const <Expression>[];
511 Name name; 506 Name name;
512 507
513 /// Flags summarizing the kinds of AST nodes contained in this member, for 508 /// Flags summarizing the kinds of AST nodes contained in this member, for
514 /// speeding up transformations that only affect certain types of nodes. 509 /// speeding up transformations that only affect certain types of nodes.
515 /// 510 ///
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 1097
1103 // ------------------------------------------------------------------------ 1098 // ------------------------------------------------------------------------
1104 // FUNCTIONS 1099 // FUNCTIONS
1105 // ------------------------------------------------------------------------ 1100 // ------------------------------------------------------------------------
1106 1101
1107 /// A function declares parameters and has a body. 1102 /// A function declares parameters and has a body.
1108 /// 1103 ///
1109 /// This may occur in a procedure, constructor, function expression, or local 1104 /// This may occur in a procedure, constructor, function expression, or local
1110 /// function declaration. 1105 /// function declaration.
1111 class FunctionNode extends TreeNode { 1106 class FunctionNode extends TreeNode {
1112 /// End offset in the source file it comes from. Valid values are from 0 and
1113 /// up, or -1 ([TreeNode.noOffset]) if the file end offset is not available
1114 /// (this is the default if none is specifically set).
1115 int fileEndOffset = TreeNode.noOffset;
1116
1117 AsyncMarker asyncMarker; 1107 AsyncMarker asyncMarker;
1118 bool debuggable = true;
1119 List<TypeParameter> typeParameters; 1108 List<TypeParameter> typeParameters;
1120 int requiredParameterCount; 1109 int requiredParameterCount;
1121 List<VariableDeclaration> positionalParameters; 1110 List<VariableDeclaration> positionalParameters;
1122 List<VariableDeclaration> namedParameters; 1111 List<VariableDeclaration> namedParameters;
1123 InferredValue inferredReturnValue; // May be null. 1112 InferredValue inferredReturnValue; // May be null.
1124 DartType returnType; // Not null. 1113 DartType returnType; // Not null.
1125 Statement body; 1114 Statement body;
1126 1115
1127 FunctionNode(this.body, 1116 FunctionNode(this.body,
1128 {List<TypeParameter> typeParameters, 1117 {List<TypeParameter> typeParameters,
(...skipping 2533 matching lines...) Expand 10 before | Expand all | Expand 10 after
3662 } 3651 }
3663 } 3652 }
3664 } 3653 }
3665 3654
3666 class Source { 3655 class Source {
3667 final List<int> lineStarts; 3656 final List<int> lineStarts;
3668 final String source; 3657 final String source;
3669 3658
3670 Source(this.lineStarts, this.source); 3659 Source(this.lineStarts, this.source);
3671 } 3660 }
OLDNEW
« no previous file with comments | « pkg/kernel/lib/analyzer/loader.dart ('k') | pkg/kernel/lib/clone.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698