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

Side by Side Diff: pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart

Issue 2994103002: Add kythe support to plugins and format the spec files (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/tool/spec/generate_files". 7 // "pkg/analysis_server/tool/spec/generate_files".
8 8
9 /** 9 /**
10 * Matchers for data types defined in the analysis server API 10 * Matchers for data types defined in the analysis server API
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 "TOP_LEVEL_SETTER_DECLARATION", 499 "TOP_LEVEL_SETTER_DECLARATION",
500 "TOP_LEVEL_SETTER_REFERENCE", 500 "TOP_LEVEL_SETTER_REFERENCE",
501 "TOP_LEVEL_VARIABLE_DECLARATION", 501 "TOP_LEVEL_VARIABLE_DECLARATION",
502 "TYPE_NAME_DYNAMIC", 502 "TYPE_NAME_DYNAMIC",
503 "TYPE_PARAMETER", 503 "TYPE_PARAMETER",
504 "UNRESOLVED_INSTANCE_MEMBER_REFERENCE", 504 "UNRESOLVED_INSTANCE_MEMBER_REFERENCE",
505 "VALID_STRING_ESCAPE" 505 "VALID_STRING_ESCAPE"
506 ]); 506 ]);
507 507
508 /** 508 /**
509 * KytheEntry
510 *
511 * {
512 * "source": KytheVName
513 * "kind": String
514 * "target": KytheVName
515 * "fact": String
516 * "value": List<int>
517 * }
518 */
519 final Matcher isKytheEntry =
520 new LazyMatcher(() => new MatchesJsonObject("KytheEntry", {
521 "source": isKytheVName,
522 "kind": isString,
523 "target": isKytheVName,
524 "fact": isString,
525 "value": isListOf(isInt)
526 }));
527
528 /**
529 * KytheVName
530 *
531 * {
532 * "signature": String
533 * "corpus": String
534 * "root": String
535 * "path": String
536 * "language": String
537 * }
538 */
539 final Matcher isKytheVName =
540 new LazyMatcher(() => new MatchesJsonObject("KytheVName", {
541 "signature": isString,
542 "corpus": isString,
543 "root": isString,
544 "path": isString,
545 "language": isString
546 }));
547
548 /**
509 * LinkedEditGroup 549 * LinkedEditGroup
510 * 550 *
511 * { 551 * {
512 * "positions": List<Position> 552 * "positions": List<Position>
513 * "length": int 553 * "length": int
514 * "suggestions": List<LinkedEditSuggestion> 554 * "suggestions": List<LinkedEditSuggestion>
515 * } 555 * }
516 */ 556 */
517 final Matcher isLinkedEditGroup = 557 final Matcher isLinkedEditGroup =
518 new LazyMatcher(() => new MatchesJsonObject("LinkedEditGroup", { 558 new LazyMatcher(() => new MatchesJsonObject("LinkedEditGroup", {
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 * { 1380 * {
1341 * "deleteSource": bool 1381 * "deleteSource": bool
1342 * "inlineAll": bool 1382 * "inlineAll": bool
1343 * } 1383 * }
1344 */ 1384 */
1345 final Matcher isInlineMethodOptions = new LazyMatcher(() => 1385 final Matcher isInlineMethodOptions = new LazyMatcher(() =>
1346 new MatchesJsonObject( 1386 new MatchesJsonObject(
1347 "inlineMethod options", {"deleteSource": isBool, "inlineAll": isBool})); 1387 "inlineMethod options", {"deleteSource": isBool, "inlineAll": isBool}));
1348 1388
1349 /** 1389 /**
1390 * kythe.getKytheEntries params
1391 *
1392 * {
1393 * "file": FilePath
1394 * }
1395 */
1396 final Matcher isKytheGetKytheEntriesParams = new LazyMatcher(() =>
1397 new MatchesJsonObject(
1398 "kythe.getKytheEntries params", {"file": isFilePath}));
1399
1400 /**
1401 * kythe.getKytheEntries result
1402 *
1403 * {
1404 * "entries": List<KytheEntry>
1405 * "files": List<FilePath>
1406 * }
1407 */
1408 final Matcher isKytheGetKytheEntriesResult = new LazyMatcher(() =>
1409 new MatchesJsonObject("kythe.getKytheEntries result",
1410 {"entries": isListOf(isKytheEntry), "files": isListOf(isFilePath)}));
1411
1412 /**
1350 * moveFile feedback 1413 * moveFile feedback
1351 */ 1414 */
1352 final Matcher isMoveFileFeedback = isNull; 1415 final Matcher isMoveFileFeedback = isNull;
1353 1416
1354 /** 1417 /**
1355 * moveFile options 1418 * moveFile options
1356 * 1419 *
1357 * { 1420 * {
1358 * "newFile": FilePath 1421 * "newFile": FilePath
1359 * } 1422 * }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1441 1504
1442 /** 1505 /**
1443 * rename options 1506 * rename options
1444 * 1507 *
1445 * { 1508 * {
1446 * "newName": String 1509 * "newName": String
1447 * } 1510 * }
1448 */ 1511 */
1449 final Matcher isRenameOptions = new LazyMatcher( 1512 final Matcher isRenameOptions = new LazyMatcher(
1450 () => new MatchesJsonObject("rename options", {"newName": isString})); 1513 () => new MatchesJsonObject("rename options", {"newName": isString}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698