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

Unified Diff: pkg/analyzer_plugin/test/utilities/completion/flutter_util.dart

Issue 2927663002: Port two completion contributors for use by plugins (Closed)
Patch Set: Created 3 years, 6 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
Index: pkg/analyzer_plugin/test/utilities/completion/flutter_util.dart
diff --git a/pkg/analyzer_plugin/test/utilities/completion/flutter_util.dart b/pkg/analyzer_plugin/test/utilities/completion/flutter_util.dart
new file mode 100644
index 0000000000000000000000000000000000000000..9888006842125ad0abeca9fc7b7f7b13242ac98d
--- /dev/null
+++ b/pkg/analyzer_plugin/test/utilities/completion/flutter_util.dart
@@ -0,0 +1,24 @@
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+String flutterPkgLibPath = '/packages/flutter/lib';
+
+String get flutter_framework_code => '''
+class Widget {}
+class RenderObjectWidget extends Widget {}
+class StatelessWidget extends Widget {}
+abstract class StatefulWidget extends Widget { }
+class SingleChildRenderObjectWidget extends RenderObjectWidget {}
+class Transform extends SingleChildRenderObjectWidget {}
+class ClipRect extends SingleChildRenderObjectWidget { ClipRect.rect(){} }
+class AspectRatio extends SingleChildRenderObjectWidget {}
+class Container extends StatelessWidget { Container({child: null, width: null, height: null}){}}
+class Center extends StatelessWidget { Center({child: null, key: null}){}}
+class DefaultTextStyle extends StatelessWidget { DefaultTextStyle({child: null}){}}
+class Row extends Widget { Row({List<Widget> children: null, key: null}){}}
+class GestureDetector extends SingleChildRenderObjectWidget { GestureDetector({child: null, onTap: null}){}}
+class AppBar extends StatefulWidget implements PreferredSizeWidget { AppBar(title: null, color: null, key: null) }
+class Scaffold extends Widget { Scaffold({body: null, PreferredSizeWidget appBar: null}){}}
+class PreferredSizeWidget implements Widget {}
+''';

Powered by Google App Engine
This is Rietveld 408576698