|
| 1 | +// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 | + |
| 5 | +import 'package:analyzer/dart/ast/ast.dart'; |
| 6 | +import 'package:test/test.dart'; |
| 7 | + |
| 8 | +const isAsExpression = const TypeMatcher<AsExpression>(); |
| 9 | + |
| 10 | +const isAssertInitializer = const TypeMatcher<AssertInitializer>(); |
| 11 | + |
| 12 | +const isAssignmentExpression = const TypeMatcher<AssignmentExpression>(); |
| 13 | + |
| 14 | +const isAwaitExpression = const TypeMatcher<AwaitExpression>(); |
| 15 | + |
| 16 | +const isBinaryExpression = const TypeMatcher<BinaryExpression>(); |
| 17 | + |
| 18 | +const isBlock = const TypeMatcher<Block>(); |
| 19 | + |
| 20 | +const isBlockFunctionBody = const TypeMatcher<BlockFunctionBody>(); |
| 21 | + |
| 22 | +const isClassDeclaration = const TypeMatcher<ClassDeclaration>(); |
| 23 | + |
| 24 | +const isClassTypeAlias = const TypeMatcher<ClassTypeAlias>(); |
| 25 | + |
| 26 | +const isCompilationUnit = const TypeMatcher<CompilationUnit>(); |
| 27 | + |
| 28 | +const isConditionalExpression = const TypeMatcher<ConditionalExpression>(); |
| 29 | + |
| 30 | +const isConstructorDeclaration = const TypeMatcher<ConstructorDeclaration>(); |
| 31 | + |
| 32 | +const isConstructorFieldInitializer = |
| 33 | + const TypeMatcher<ConstructorFieldInitializer>(); |
| 34 | + |
| 35 | +const isDefaultFormalParameter = const TypeMatcher<DefaultFormalParameter>(); |
| 36 | + |
| 37 | +const isEmptyFunctionBody = const TypeMatcher<EmptyFunctionBody>(); |
| 38 | + |
| 39 | +const isEmptyStatement = const TypeMatcher<EmptyStatement>(); |
| 40 | + |
| 41 | +const isExpressionFunctionBody = const TypeMatcher<ExpressionFunctionBody>(); |
| 42 | + |
| 43 | +const isExpressionStatement = const TypeMatcher<ExpressionStatement>(); |
| 44 | + |
| 45 | +const isFieldDeclaration = const TypeMatcher<FieldDeclaration>(); |
| 46 | + |
| 47 | +const isFieldFormalParameter = const TypeMatcher<FieldFormalParameter>(); |
| 48 | + |
| 49 | +const isForStatement = const TypeMatcher<ForStatement>(); |
| 50 | + |
| 51 | +const isFunctionDeclaration = const TypeMatcher<FunctionDeclaration>(); |
| 52 | + |
| 53 | +const isFunctionDeclarationStatement = |
| 54 | + const TypeMatcher<FunctionDeclarationStatement>(); |
| 55 | + |
| 56 | +const isFunctionExpression = const TypeMatcher<FunctionExpression>(); |
| 57 | + |
| 58 | +const isFunctionTypeAlias = const TypeMatcher<FunctionTypeAlias>(); |
| 59 | + |
| 60 | +const isFunctionTypedFormalParameter = |
| 61 | + const TypeMatcher<FunctionTypedFormalParameter>(); |
| 62 | + |
| 63 | +const isGenericFunctionType = const TypeMatcher<GenericFunctionType>(); |
| 64 | + |
| 65 | +const isIndexExpression = const TypeMatcher<IndexExpression>(); |
| 66 | + |
| 67 | +const isInstanceCreationExpression = |
| 68 | + const TypeMatcher<InstanceCreationExpression>(); |
| 69 | + |
| 70 | +const isIntegerLiteral = const TypeMatcher<IntegerLiteral>(); |
| 71 | + |
| 72 | +const isInterpolationExpression = const TypeMatcher<InterpolationExpression>(); |
| 73 | + |
| 74 | +const isInterpolationString = const TypeMatcher<InterpolationString>(); |
| 75 | + |
| 76 | +const isIsExpression = const TypeMatcher<IsExpression>(); |
| 77 | + |
| 78 | +const isLibraryDirective = const TypeMatcher<LibraryDirective>(); |
| 79 | + |
| 80 | +const isMethodDeclaration = const TypeMatcher<MethodDeclaration>(); |
| 81 | + |
| 82 | +const isMethodInvocation = const TypeMatcher<MethodInvocation>(); |
| 83 | + |
| 84 | +const isNullLiteral = const TypeMatcher<NullLiteral>(); |
| 85 | + |
| 86 | +const isParenthesizedExpression = const TypeMatcher<ParenthesizedExpression>(); |
| 87 | + |
| 88 | +const isPrefixedIdentifier = const TypeMatcher<PrefixedIdentifier>(); |
| 89 | + |
| 90 | +const isPrefixExpression = const TypeMatcher<PrefixExpression>(); |
| 91 | + |
| 92 | +const isPropertyAccess = const TypeMatcher<PropertyAccess>(); |
| 93 | + |
| 94 | +const isReturnStatement = const TypeMatcher<ReturnStatement>(); |
| 95 | + |
| 96 | +const isSimpleFormalParameter = const TypeMatcher<SimpleFormalParameter>(); |
| 97 | + |
| 98 | +const isSimpleIdentifier = const TypeMatcher<SimpleIdentifier>(); |
| 99 | + |
| 100 | +const isStringInterpolation = const TypeMatcher<StringInterpolation>(); |
| 101 | + |
| 102 | +const isSuperExpression = const TypeMatcher<SuperExpression>(); |
| 103 | + |
| 104 | +const isTopLevelVariableDeclaration = |
| 105 | + const TypeMatcher<TopLevelVariableDeclaration>(); |
| 106 | + |
| 107 | +const isTypeName = const TypeMatcher<TypeName>(); |
| 108 | + |
| 109 | +const isVariableDeclarationStatement = |
| 110 | + const TypeMatcher<VariableDeclarationStatement>(); |
0 commit comments