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

Unified Diff: pkg/analyzer/lib/src/summary/summarize_ast.dart

Issue 1689283002: Serialize parameters visible ranges. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Changes for review comments. Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/summary/idl.dart ('k') | pkg/analyzer/lib/src/summary/summarize_elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/summarize_ast.dart
diff --git a/pkg/analyzer/lib/src/summary/summarize_ast.dart b/pkg/analyzer/lib/src/summary/summarize_ast.dart
index 1c5081c710ca5dbc6b0548b8ed1b488ab5a57f77..29adbea6436ab54e7f269c8d25e6b0999350f6a9 100644
--- a/pkg/analyzer/lib/src/summary/summarize_ast.dart
+++ b/pkg/analyzer/lib/src/summary/summarize_ast.dart
@@ -544,6 +544,12 @@ class _SummarizeAstVisitor extends RecursiveAstVisitor {
}
void serializeFunctionBody(UnlinkedExecutableBuilder b, FunctionBody body) {
+ if (body is BlockFunctionBody || body is ExpressionFunctionBody) {
+ for (UnlinkedParamBuilder parameter in b.parameters) {
+ parameter.visibleOffset = body.offset;
+ parameter.visibleLength = body.length;
+ }
+ }
List<UnlinkedExecutableBuilder> oldExecutables = executables;
List<UnlinkedVariableBuilder> oldVariables = variables;
executables = <UnlinkedExecutableBuilder>[];
« no previous file with comments | « pkg/analyzer/lib/src/summary/idl.dart ('k') | pkg/analyzer/lib/src/summary/summarize_elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698