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

Unified Diff: pkg/analysis_server/test/services/completion/optype_test.dart

Issue 1005483002: add completion in type argument list (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: format Created 5 years, 9 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/analysis_server/test/services/completion/completion_test_util.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/completion/optype_test.dart
diff --git a/pkg/analysis_server/test/services/completion/optype_test.dart b/pkg/analysis_server/test/services/completion/optype_test.dart
index 9ff44e53a86c996f4869b3c580db4a9fc40db88f..fe1eefbd08ca44e707d2fde81fd1d1a5e94a2326 100644
--- a/pkg/analysis_server/test/services/completion/optype_test.dart
+++ b/pkg/analysis_server/test/services/completion/optype_test.dart
@@ -178,6 +178,12 @@ class OpTypeTest {
assertOpType(returnValue: true, typeNames: true);
}
+ test_BinaryExpression_RHS2() {
+ // SimpleIdentifier BinaryExpression
+ addTestSource('main() {if (c < ^)}');
+ assertOpType(returnValue: true, typeNames: true);
+ }
+
test_Block() {
// Block BlockFunctionBody MethodDeclaration
addTestSource('''
@@ -1046,6 +1052,18 @@ class C2 {
assertOpType();
}
+ test_TypeArgumentList() {
+ // SimpleIdentifier BinaryExpression ExpressionStatement
+ addTestSource('main() { C<^> c; }');
+ assertOpType(typeNames: true);
+ }
+
+ test_TypeArgumentList2() {
+ // TypeName TypeArgumentList TypeName
+ addTestSource('main() { C<C^> c; }');
+ assertOpType(typeNames: true);
+ }
+
test_TypeParameter() {
// SimpleIdentifier TypeParameter TypeParameterList
addTestSource('class tezetst <String, ^List> {}');
« no previous file with comments | « pkg/analysis_server/test/services/completion/completion_test_util.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698