// This is a generated file. Not intended for manual editing.
package com.jetbrains.lang.dart;
import com.intellij.psi.tree.IElementType;
import com.intellij.psi.PsiElement;
import com.intellij.lang.ASTNode;
import com.jetbrains.lang.dart.psi.impl.*;
public interface DartTokenTypes {
IElementType ADDITIVE_EXPRESSION = new DartElementType("ADDITIVE_EXPRESSION");
IElementType ADDITIVE_OPERATOR = new DartElementType("ADDITIVE_OPERATOR");
IElementType ARGUMENTS = new DartElementType("ARGUMENTS");
IElementType ARGUMENT_LIST = new DartElementType("ARGUMENT_LIST");
IElementType ARRAY_ACCESS_EXPRESSION = new DartElementType("ARRAY_ACCESS_EXPRESSION");
IElementType ASSERT_STATEMENT = new DartElementType("ASSERT_STATEMENT");
IElementType ASSIGNMENT_OPERATOR = new DartElementType("ASSIGNMENT_OPERATOR");
IElementType ASSIGN_EXPRESSION = new DartElementType("ASSIGN_EXPRESSION");
IElementType AS_EXPRESSION = new DartElementType("AS_EXPRESSION");
IElementType AWAIT_EXPRESSION = new DartElementType("AWAIT_EXPRESSION");
IElementType BITWISE_EXPRESSION = new DartElementType("BITWISE_EXPRESSION");
IElementType BITWISE_OPERATOR = new DartElementType("BITWISE_OPERATOR");
IElementType BLOCK = new DartElementType("BLOCK");
IElementType BREAK_STATEMENT = new DartElementType("BREAK_STATEMENT");
IElementType CALL_EXPRESSION = new DartElementType("CALL_EXPRESSION");
IElementType CASCADE_REFERENCE_EXPRESSION = new DartElementType("CASCADE_REFERENCE_EXPRESSION");
IElementType CATCH_PART = new DartElementType("CATCH_PART");
IElementType CLASS_BODY = new DartElementType("CLASS_BODY");
IElementType CLASS_DEFINITION = new DartElementType("CLASS_DEFINITION");
IElementType CLASS_MEMBERS = new DartElementType("CLASS_MEMBERS");
IElementType COMPARE_EXPRESSION = new DartElementType("COMPARE_EXPRESSION");
IElementType COMPONENT_NAME = new DartElementType("COMPONENT_NAME");
IElementType CONTINUE_STATEMENT = new DartElementType("CONTINUE_STATEMENT");
IElementType DEFAULT_CASE = new DartElementType("DEFAULT_CASE");
IElementType DEFAULT_FORMAL_NAMED_PARAMETER = new DartElementType("DEFAULT_FORMAL_NAMED_PARAMETER");
IElementType DO_WHILE_STATEMENT = new DartElementType("DO_WHILE_STATEMENT");
IElementType ENUM_CONSTANT_DECLARATION = new DartElementType("ENUM_CONSTANT_DECLARATION");
IElementType ENUM_DEFINITION = new DartElementType("ENUM_DEFINITION");
IElementType EQUALITY_OPERATOR = new DartElementType("EQUALITY_OPERATOR");
IElementType EXPORT_STATEMENT = new DartElementType("EXPORT_STATEMENT");
IElementType EXPRESSION = new DartElementType("EXPRESSION");
IElementType EXPRESSION_LIST = new DartElementType("EXPRESSION_LIST");
IElementType FACTORY_CONSTRUCTOR_DECLARATION = new DartElementType("FACTORY_CONSTRUCTOR_DECLARATION");
IElementType FIELD_FORMAL_PARAMETER = new DartElementType("FIELD_FORMAL_PARAMETER");
IElementType FIELD_INITIALIZER = new DartElementType("FIELD_INITIALIZER");
IElementType FINALLY_PART = new DartElementType("FINALLY_PART");
IElementType FORMAL_PARAMETER_LIST = new DartElementType("FORMAL_PARAMETER_LIST");
IElementType FOR_IN_PART = new DartElementType("FOR_IN_PART");
IElementType FOR_LOOP_PARTS = new DartElementType("FOR_LOOP_PARTS");
IElementType FOR_LOOP_PARTS_IN_BRACES = new DartElementType("FOR_LOOP_PARTS_IN_BRACES");
IElementType FOR_STATEMENT = new DartElementType("FOR_STATEMENT");
IElementType FUNCTION_BODY = new DartElementType("FUNCTION_BODY");
IElementType FUNCTION_DECLARATION_WITH_BODY = new DartElementType("FUNCTION_DECLARATION_WITH_BODY");
IElementType FUNCTION_DECLARATION_WITH_BODY_OR_NATIVE = new DartElementType("FUNCTION_DECLARATION_WITH_BODY_OR_NATIVE");
IElementType FUNCTION_EXPRESSION = new DartElementType("FUNCTION_EXPRESSION");
IElementType FUNCTION_EXPRESSION_BODY = new DartElementType("FUNCTION_EXPRESSION_BODY");
IElementType FUNCTION_FORMAL_PARAMETER = new DartElementType("FUNCTION_FORMAL_PARAMETER");
IElementType FUNCTION_TYPE_ALIAS = new DartElementType("FUNCTION_TYPE_ALIAS");
IElementType GETTER_DECLARATION = new DartElementType("GETTER_DECLARATION");
IElementType HIDE_COMBINATOR = new DartElementType("HIDE_COMBINATOR");
IElementType ID = new DartElementType("ID");
IElementType IF_NULL_EXPRESSION = new DartElementType("IF_NULL_EXPRESSION");
IElementType IF_STATEMENT = new DartElementType("IF_STATEMENT");
IElementType IMPORT_STATEMENT = new DartElementType("IMPORT_STATEMENT");
IElementType INCOMPLETE_DECLARATION = new DartElementType("INCOMPLETE_DECLARATION");
IElementType INITIALIZERS = new DartElementType("INITIALIZERS");
IElementType INTERFACES = new DartElementType("INTERFACES");
IElementType IS_EXPRESSION = new DartElementType("IS_EXPRESSION");
IElementType LABEL = new DartElementType("LABEL");
IElementType LIBRARY_COMPONENT_REFERENCE_EXPRESSION = new DartElementType("LIBRARY_COMPONENT_REFERENCE_EXPRESSION");
IElementType LIBRARY_ID = new DartElementType("LIBRARY_ID");
IElementType LIBRARY_NAME_ELEMENT = new DartElementType("LIBRARY_NAME_ELEMENT");
IElementType LIBRARY_REFERENCE_LIST = new DartElementType("LIBRARY_REFERENCE_LIST");
IElementType LIBRARY_STATEMENT = new DartElementType("LIBRARY_STATEMENT");
IElementType LIST_LITERAL_EXPRESSION = new DartElementType("LIST_LITERAL_EXPRESSION");
IElementType LITERAL_EXPRESSION = new DartElementType("LITERAL_EXPRESSION");
IElementType LOGIC_AND_EXPRESSION = new DartElementType("LOGIC_AND_EXPRESSION");
IElementType LOGIC_OR_EXPRESSION = new DartElementType("LOGIC_OR_EXPRESSION");
IElementType LONG_TEMPLATE_ENTRY = new DartElementType("LONG_TEMPLATE_ENTRY");
IElementType MAP_LITERAL_ENTRY = new DartElementType("MAP_LITERAL_ENTRY");
IElementType MAP_LITERAL_EXPRESSION = new DartElementType("MAP_LITERAL_EXPRESSION");
IElementType METADATA = new DartElementType("METADATA");
IElementType METHOD_DECLARATION = new DartElementType("METHOD_DECLARATION");
IElementType MIXINS = new DartElementType("MIXINS");
IElementType MIXIN_APPLICATION = new DartElementType("MIXIN_APPLICATION");
IElementType MULTIPLICATIVE_EXPRESSION = new DartElementType("MULTIPLICATIVE_EXPRESSION");
IElementType MULTIPLICATIVE_OPERATOR = new DartElementType("MULTIPLICATIVE_OPERATOR");
IElementType NAMED_ARGUMENT = new DartElementType("NAMED_ARGUMENT");
IElementType NAMED_CONSTRUCTOR_DECLARATION = new DartElementType("NAMED_CONSTRUCTOR_DECLARATION");
IElementType NEW_EXPRESSION = new DartElementType("NEW_EXPRESSION");
IElementType NORMAL_FORMAL_PARAMETER = new DartElementType("NORMAL_FORMAL_PARAMETER");
IElementType NORMAL_PARAMETER_TYPE = new DartElementType("NORMAL_PARAMETER_TYPE");
IElementType ON_PART = new DartElementType("ON_PART");
IElementType OPTIONAL_FORMAL_PARAMETERS = new DartElementType("OPTIONAL_FORMAL_PARAMETERS");
IElementType OPTIONAL_PARAMETER_TYPES = new DartElementType("OPTIONAL_PARAMETER_TYPES");
IElementType PARAMETER_NAME_REFERENCE_EXPRESSION = new DartElementType("PARAMETER_NAME_REFERENCE_EXPRESSION");
IElementType PARAMETER_TYPE_LIST = new DartElementType("PARAMETER_TYPE_LIST");
IElementType PARENTHESIZED_EXPRESSION = new DartElementType("PARENTHESIZED_EXPRESSION");
IElementType PART_OF_STATEMENT = new DartElementType("PART_OF_STATEMENT");
IElementType PART_STATEMENT = new DartElementType("PART_STATEMENT");
IElementType PREFIX_EXPRESSION = new DartElementType("PREFIX_EXPRESSION");
IElementType PREFIX_OPERATOR = new DartElementType("PREFIX_OPERATOR");
IElementType REDIRECTION = new DartElementType("REDIRECTION");
IElementType REFERENCE_EXPRESSION = new DartElementType("REFERENCE_EXPRESSION");
IElementType RELATIONAL_OPERATOR = new DartElementType("RELATIONAL_OPERATOR");
IElementType RETHROW_STATEMENT = new DartElementType("RETHROW_STATEMENT");
IElementType RETURN_STATEMENT = new DartElementType("RETURN_STATEMENT");
IElementType RETURN_TYPE = new DartElementType("RETURN_TYPE");
IElementType SETTER_DECLARATION = new DartElementType("SETTER_DECLARATION");
IElementType SHIFT_EXPRESSION = new DartElementType("SHIFT_EXPRESSION");
IElementType SHIFT_OPERATOR = new DartElementType("SHIFT_OPERATOR");
IElementType SHORT_TEMPLATE_ENTRY = new DartElementType("SHORT_TEMPLATE_ENTRY");
IElementType SHOW_COMBINATOR = new DartElementType("SHOW_COMBINATOR");
IElementType SIMPLE_FORMAL_PARAMETER = new DartElementType("SIMPLE_FORMAL_PARAMETER");
IElementType SIMPLE_TYPE = new DartElementType("SIMPLE_TYPE");
IElementType STATEMENTS = new DartElementType("STATEMENTS");
IElementType STRING_LITERAL_EXPRESSION = new DartElementType("STRING_LITERAL_EXPRESSION");
IElementType SUFFIX_EXPRESSION = new DartElementType("SUFFIX_EXPRESSION");
IElementType SUPERCLASS = new DartElementType("SUPERCLASS");
IElementType SUPER_CALL_OR_FIELD_INITIALIZER = new DartElementType("SUPER_CALL_OR_FIELD_INITIALIZER");
IElementType SUPER_EXPRESSION = new DartElementType("SUPER_EXPRESSION");
IElementType SWITCH_CASE = new DartElementType("SWITCH_CASE");
IElementType SWITCH_STATEMENT = new DartElementType("SWITCH_STATEMENT");
IElementType SYMBOL_LITERAL_EXPRESSION = new DartElementType("SYMBOL_LITERAL_EXPRESSION");
IElementType TERNARY_EXPRESSION = new DartElementType("TERNARY_EXPRESSION");
IElementType THIS_EXPRESSION = new DartElementType("THIS_EXPRESSION");
IElementType THROW_EXPRESSION = new DartElementType("THROW_EXPRESSION");
IElementType TRY_STATEMENT = new DartElementType("TRY_STATEMENT");
IElementType TYPE = new DartElementType("TYPE");
IElementType TYPED_FUNCTION_TYPE = new DartElementType("TYPED_FUNCTION_TYPE");
IElementType TYPE_ARGUMENTS = new DartElementType("TYPE_ARGUMENTS");
IElementType TYPE_LIST = new DartElementType("TYPE_LIST");
IElementType TYPE_PARAMETER = new DartElementType("TYPE_PARAMETER");
IElementType TYPE_PARAMETERS = new DartElementType("TYPE_PARAMETERS");
IElementType UNTYPED_FUNCTION_TYPE = new DartElementType("UNTYPED_FUNCTION_TYPE");
IElementType URI_ELEMENT = new DartElementType("URI_ELEMENT");
IElementType USER_DEFINABLE_OPERATOR = new DartElementType("USER_DEFINABLE_OPERATOR");
IElementType VALUE_EXPRESSION = new DartElementType("VALUE_EXPRESSION");
IElementType VAR_ACCESS_DECLARATION = new DartElementType("VAR_ACCESS_DECLARATION");
IElementType VAR_DECLARATION_LIST = new DartElementType("VAR_DECLARATION_LIST");
IElementType VAR_DECLARATION_LIST_PART = new DartElementType("VAR_DECLARATION_LIST_PART");
IElementType VAR_INIT = new DartElementType("VAR_INIT");
IElementType VOID_TYPE_FUNCTION_TYPE = new DartElementType("VOID_TYPE_FUNCTION_TYPE");
IElementType WHILE_STATEMENT = new DartElementType("WHILE_STATEMENT");
IElementType YIELD_EACH_STATEMENT = new DartElementType("YIELD_EACH_STATEMENT");
IElementType YIELD_STATEMENT = new DartElementType("YIELD_STATEMENT");
IElementType ABSTRACT = new DartElementType("abstract");
IElementType AND = new DartElementType("&");
IElementType AND_AND = new DartElementType("&&");
IElementType AND_AND_EQ = new DartElementType("&&=");
IElementType AND_EQ = new DartElementType("&=");
IElementType AS = new DartElementType("as");
IElementType ASSERT = new DartElementType("assert");
IElementType ASYNC = new DartElementType("async");
IElementType AT = new DartElementType("@");
IElementType AWAIT = new DartElementType("await");
IElementType BIN_NOT = new DartElementType("~");
IElementType BREAK = new DartElementType("break");
IElementType CASE = new DartElementType("case");
IElementType CATCH = new DartElementType("catch");
IElementType CLASS = new DartElementType("class");
IElementType CLOSING_QUOTE = new DartElementType("CLOSING_QUOTE");
IElementType COLON = new DartElementType(":");
IElementType COMMA = new DartElementType(",");
IElementType CONST = new DartElementType("const");
IElementType CONTINUE = new DartElementType("continue");
IElementType COVARIANT = new DartElementType("covariant");
IElementType DEFAULT = new DartElementType("default");
IElementType DEFERRED = new DartElementType("deferred");
IElementType DIV = new DartElementType("/");
IElementType DIV_EQ = new DartElementType("/=");
IElementType DO = new DartElementType("do");
IElementType DOT = new DartElementType(".");
IElementType DOT_DOT = new DartElementType("..");
IElementType ELSE = new DartElementType("else");
IElementType ENUM = new DartElementType("enum");
IElementType EQ = new DartElementType("=");
IElementType EQ_EQ = new DartElementType("==");
IElementType EXPORT = new DartElementType("export");
IElementType EXPRESSION_BODY_DEF = new DartElementType("=>");
IElementType EXTENDS = new DartElementType("extends");
IElementType EXTERNAL = new DartElementType("external");
IElementType FACTORY = new DartElementType("factory");
IElementType FALSE = new DartElementType("false");
IElementType FINAL = new DartElementType("final");
IElementType FINALLY = new DartElementType("finally");
IElementType FOR = new DartElementType("for");
IElementType GET = new DartElementType("get");
IElementType GT = new DartElementType(">");
IElementType GT_EQ = new DartElementType(">=");
IElementType GT_GT = new DartElementType(">>");
IElementType GT_GT_EQ = new DartElementType(">>=");
IElementType HASH = new DartElementType("#");
IElementType HEX_NUMBER = new DartElementType("HEX_NUMBER");
IElementType HIDE = new DartElementType("hide");
IElementType IDENTIFIER = new DartElementType("IDENTIFIER");
IElementType IF = new DartElementType("if");
IElementType IMPLEMENTS = new DartElementType("implements");
IElementType IMPORT = new DartElementType("import");
IElementType IN = new DartElementType("in");
IElementType INT_DIV = new DartElementType("~/");
IElementType INT_DIV_EQ = new DartElementType("~/=");
IElementType IS = new DartElementType("is");
IElementType LBRACE = new DartElementType("{");
IElementType LBRACKET = new DartElementType("[");
IElementType LIBRARY = new DartElementType("library");
IElementType LONG_TEMPLATE_ENTRY_END = new DartElementType("LONG_TEMPLATE_ENTRY_END");
IElementType LONG_TEMPLATE_ENTRY_START = new DartElementType("LONG_TEMPLATE_ENTRY_START");
IElementType LPAREN = new DartElementType("(");
IElementType LT = new DartElementType("<");
IElementType LT_EQ = new DartElementType("<=");
IElementType LT_LT = new DartElementType("<<");
IElementType LT_LT_EQ = new DartElementType("<<=");
IElementType MINUS = new DartElementType("-");
IElementType MINUS_EQ = new DartElementType("-=");
IElementType MINUS_MINUS = new DartElementType("--");
IElementType MUL = new DartElementType("*");
IElementType MUL_EQ = new DartElementType("*=");
IElementType NATIVE = new DartElementType("native");
IElementType NEQ = new DartElementType("!=");
IElementType NEW = new DartElementType("new");
IElementType NOT = new DartElementType("!");
IElementType NULL = new DartElementType("null");
IElementType NUMBER = new DartElementType("NUMBER");
IElementType OF = new DartElementType("of");
IElementType ON = new DartElementType("on");
IElementType OPEN_QUOTE = new DartElementType("OPEN_QUOTE");
IElementType OPERATOR = new DartElementType("operator");
IElementType OR = new DartElementType("|");
IElementType OR_EQ = new DartElementType("|=");
IElementType OR_OR = new DartElementType("||");
IElementType OR_OR_EQ = new DartElementType("||=");
IElementType PART = new DartElementType("part");
IElementType PLUS = new DartElementType("+");
IElementType PLUS_EQ = new DartElementType("+=");
IElementType PLUS_PLUS = new DartElementType("++");
IElementType QUEST = new DartElementType("?");
IElementType QUEST_DOT = new DartElementType("?.");
IElementType QUEST_QUEST = new DartElementType("??");
IElementType QUEST_QUEST_EQ = new DartElementType("??=");
IElementType RAW_SINGLE_QUOTED_STRING = new DartElementType("RAW_SINGLE_QUOTED_STRING");
IElementType RAW_TRIPLE_QUOTED_STRING = new DartElementType("RAW_TRIPLE_QUOTED_STRING");
IElementType RBRACE = new DartElementType("}");
IElementType RBRACKET = new DartElementType("]");
IElementType REGULAR_STRING_PART = new DartElementType("REGULAR_STRING_PART");
IElementType REM = new DartElementType("%");
IElementType REM_EQ = new DartElementType("%=");
IElementType RETHROW = new DartElementType("rethrow");
IElementType RETURN = new DartElementType("return");
IElementType RPAREN = new DartElementType(")");
IElementType SEMICOLON = new DartElementType(";");
IElementType SET = new DartElementType("set");
IElementType SHORT_TEMPLATE_ENTRY_START = new DartElementType("SHORT_TEMPLATE_ENTRY_START");
IElementType SHOW = new DartElementType("show");
IElementType STATIC = new DartElementType("static");
IElementType SUPER = new DartElementType("super");
IElementType SWITCH = new DartElementType("switch");
IElementType SYNC = new DartElementType("sync");
IElementType THIS = new DartElementType("this");
IElementType THROW = new DartElementType("throw");
IElementType TRUE = new DartElementType("true");
IElementType TRY = new DartElementType("try");
IElementType TYPEDEF = new DartElementType("typedef");
IElementType VAR = new DartElementType("var");
IElementType VOID = new DartElementType("void");
IElementType WHILE = new DartElementType("while");
IElementType WITH = new DartElementType("with");
IElementType XOR = new DartElementType("^");
IElementType XOR_EQ = new DartElementType("^=");
IElementType YIELD = new DartElementType("yield");
class Factory {
public static PsiElement createElement(ASTNode node) {
IElementType type = node.getElementType();
if (type == ADDITIVE_EXPRESSION) {
return new DartAdditiveExpressionImpl(node);
}
else if (type == ADDITIVE_OPERATOR) {
return new DartAdditiveOperatorImpl(node);
}
else if (type == ARGUMENTS) {
return new DartArgumentsImpl(node);
}
else if (type == ARGUMENT_LIST) {
return new DartArgumentListImpl(node);
}
else if (type == ARRAY_ACCESS_EXPRESSION) {
return new DartArrayAccessExpressionImpl(node);
}
else if (type == ASSERT_STATEMENT) {
return new DartAssertStatementImpl(node);
}
else if (type == ASSIGNMENT_OPERATOR) {
return new DartAssignmentOperatorImpl(node);
}
else if (type == ASSIGN_EXPRESSION) {
return new DartAssignExpressionImpl(node);
}
else if (type == AS_EXPRESSION) {
return new DartAsExpressionImpl(node);
}
else if (type == AWAIT_EXPRESSION) {
return new DartAwaitExpressionImpl(node);
}
else if (type == BITWISE_EXPRESSION) {
return new DartBitwiseExpressionImpl(node);
}
else if (type == BITWISE_OPERATOR) {
return new DartBitwiseOperatorImpl(node);
}
else if (type == BLOCK) {
return new DartBlockImpl(node);
}
else if (type == BREAK_STATEMENT) {
return new DartBreakStatementImpl(node);
}
else if (type == CALL_EXPRESSION) {
return new DartCallExpressionImpl(node);
}
else if (type == CASCADE_REFERENCE_EXPRESSION) {
return new DartCascadeReferenceExpressionImpl(node);
}
else if (type == CATCH_PART) {
return new DartCatchPartImpl(node);
}
else if (type == CLASS_BODY) {
return new DartClassBodyImpl(node);
}
else if (type == CLASS_DEFINITION) {
return new DartClassDefinitionImpl(node);
}
else if (type == CLASS_MEMBERS) {
return new DartClassMembersImpl(node);
}
else if (type == COMPARE_EXPRESSION) {
return new DartCompareExpressionImpl(node);
}
else if (type == COMPONENT_NAME) {
return new DartComponentNameImpl(node);
}
else if (type == CONTINUE_STATEMENT) {
return new DartContinueStatementImpl(node);
}
else if (type == DEFAULT_CASE) {
return new DartDefaultCaseImpl(node);
}
else if (type == DEFAULT_FORMAL_NAMED_PARAMETER) {
return new DartDefaultFormalNamedParameterImpl(node);
}
else if (type == DO_WHILE_STATEMENT) {
return new DartDoWhileStatementImpl(node);
}
else if (type == ENUM_CONSTANT_DECLARATION) {
return new DartEnumConstantDeclarationImpl(node);
}
else if (type == ENUM_DEFINITION) {
return new DartEnumDefinitionImpl(node);
}
else if (type == EQUALITY_OPERATOR) {
return new DartEqualityOperatorImpl(node);
}
else if (type == EXPORT_STATEMENT) {
return new DartExportStatementImpl(node);
}
else if (type == EXPRESSION) {
return new DartExpressionImpl(node);
}
else if (type == EXPRESSION_LIST) {
return new DartExpressionListImpl(node);
}
else if (type == FACTORY_CONSTRUCTOR_DECLARATION) {
return new DartFactoryConstructorDeclarationImpl(node);
}
else if (type == FIELD_FORMAL_PARAMETER) {
return new DartFieldFormalParameterImpl(node);
}
else if (type == FIELD_INITIALIZER) {
return new DartFieldInitializerImpl(node);
}
else if (type == FINALLY_PART) {
return new DartFinallyPartImpl(node);
}
else if (type == FORMAL_PARAMETER_LIST) {
return new DartFormalParameterListImpl(node);
}
else if (type == FOR_IN_PART) {
return new DartForInPartImpl(node);
}
else if (type == FOR_LOOP_PARTS) {
return new DartForLoopPartsImpl(node);
}
else if (type == FOR_LOOP_PARTS_IN_BRACES) {
return new DartForLoopPartsInBracesImpl(node);
}
else if (type == FOR_STATEMENT) {
return new DartForStatementImpl(node);
}
else if (type == FUNCTION_BODY) {
return new DartFunctionBodyImpl(node);
}
else if (type == FUNCTION_DECLARATION_WITH_BODY) {
return new DartFunctionDeclarationWithBodyImpl(node);
}
else if (type == FUNCTION_DECLARATION_WITH_BODY_OR_NATIVE) {
return new DartFunctionDeclarationWithBodyOrNativeImpl(node);
}
else if (type == FUNCTION_EXPRESSION) {
return new DartFunctionExpressionImpl(node);
}
else if (type == FUNCTION_EXPRESSION_BODY) {
return new DartFunctionExpressionBodyImpl(node);
}
else if (type == FUNCTION_FORMAL_PARAMETER) {
return new DartFunctionFormalParameterImpl(node);
}
else if (type == FUNCTION_TYPE_ALIAS) {
return new DartFunctionTypeAliasImpl(node);
}
else if (type == GETTER_DECLARATION) {
return new DartGetterDeclarationImpl(node);
}
else if (type == HIDE_COMBINATOR) {
return new DartHideCombinatorImpl(node);
}
else if (type == ID) {
return new DartIdImpl(node);
}
else if (type == IF_NULL_EXPRESSION) {
return new DartIfNullExpressionImpl(node);
}
else if (type == IF_STATEMENT) {
return new DartIfStatementImpl(node);
}
else if (type == IMPORT_STATEMENT) {
return new DartImportStatementImpl(node);
}
else if (type == INCOMPLETE_DECLARATION) {
return new DartIncompleteDeclarationImpl(node);
}
else if (type == INITIALIZERS) {
return new DartInitializersImpl(node);
}
else if (type == INTERFACES) {
return new DartInterfacesImpl(node);
}
else if (type == IS_EXPRESSION) {
return new DartIsExpressionImpl(node);
}
else if (type == LABEL) {
return new DartLabelImpl(node);
}
else if (type == LIBRARY_COMPONENT_REFERENCE_EXPRESSION) {
return new DartLibraryComponentReferenceExpressionImpl(node);
}
else if (type == LIBRARY_ID) {
return new DartLibraryIdImpl(node);
}
else if (type == LIBRARY_NAME_ELEMENT) {
return new DartLibraryNameElementImpl(node);
}
else if (type == LIBRARY_REFERENCE_LIST) {
return new DartLibraryReferenceListImpl(node);
}
else if (type == LIBRARY_STATEMENT) {
return new DartLibraryStatementImpl(node);
}
else if (type == LIST_LITERAL_EXPRESSION) {
return new DartListLiteralExpressionImpl(node);
}
else if (type == LITERAL_EXPRESSION) {
return new DartLiteralExpressionImpl(node);
}
else if (type == LOGIC_AND_EXPRESSION) {
return new DartLogicAndExpressionImpl(node);
}
else if (type == LOGIC_OR_EXPRESSION) {
return new DartLogicOrExpressionImpl(node);
}
else if (type == LONG_TEMPLATE_ENTRY) {
return new DartLongTemplateEntryImpl(node);
}
else if (type == MAP_LITERAL_ENTRY) {
return new DartMapLiteralEntryImpl(node);
}
else if (type == MAP_LITERAL_EXPRESSION) {
return new DartMapLiteralExpressionImpl(node);
}
else if (type == METADATA) {
return new DartMetadataImpl(node);
}
else if (type == METHOD_DECLARATION) {
return new DartMethodDeclarationImpl(node);
}
else if (type == MIXINS) {
return new DartMixinsImpl(node);
}
else if (type == MIXIN_APPLICATION) {
return new DartMixinApplicationImpl(node);
}
else if (type == MULTIPLICATIVE_EXPRESSION) {
return new DartMultiplicativeExpressionImpl(node);
}
else if (type == MULTIPLICATIVE_OPERATOR) {
return new DartMultiplicativeOperatorImpl(node);
}
else if (type == NAMED_ARGUMENT) {
return new DartNamedArgumentImpl(node);
}
else if (type == NAMED_CONSTRUCTOR_DECLARATION) {
return new DartNamedConstructorDeclarationImpl(node);
}
else if (type == NEW_EXPRESSION) {
return new DartNewExpressionImpl(node);
}
else if (type == NORMAL_FORMAL_PARAMETER) {
return new DartNormalFormalParameterImpl(node);
}
else if (type == NORMAL_PARAMETER_TYPE) {
return new DartNormalParameterTypeImpl(node);
}
else if (type == ON_PART) {
return new DartOnPartImpl(node);
}
else if (type == OPTIONAL_FORMAL_PARAMETERS) {
return new DartOptionalFormalParametersImpl(node);
}
else if (type == OPTIONAL_PARAMETER_TYPES) {
return new DartOptionalParameterTypesImpl(node);
}
else if (type == PARAMETER_NAME_REFERENCE_EXPRESSION) {
return new DartParameterNameReferenceExpressionImpl(node);
}
else if (type == PARAMETER_TYPE_LIST) {
return new DartParameterTypeListImpl(node);
}
else if (type == PARENTHESIZED_EXPRESSION) {
return new DartParenthesizedExpressionImpl(node);
}
else if (type == PART_OF_STATEMENT) {
return new DartPartOfStatementImpl(node);
}
else if (type == PART_STATEMENT) {
return new DartPartStatementImpl(node);
}
else if (type == PREFIX_EXPRESSION) {
return new DartPrefixExpressionImpl(node);
}
else if (type == PREFIX_OPERATOR) {
return new DartPrefixOperatorImpl(node);
}
else if (type == REDIRECTION) {
return new DartRedirectionImpl(node);
}
else if (type == REFERENCE_EXPRESSION) {
return new DartReferenceExpressionImpl(node);
}
else if (type == RELATIONAL_OPERATOR) {
return new DartRelationalOperatorImpl(node);
}
else if (type == RETHROW_STATEMENT) {
return new DartRethrowStatementImpl(node);
}
else if (type == RETURN_STATEMENT) {
return new DartReturnStatementImpl(node);
}
else if (type == RETURN_TYPE) {
return new DartReturnTypeImpl(node);
}
else if (type == SETTER_DECLARATION) {
return new DartSetterDeclarationImpl(node);
}
else if (type == SHIFT_EXPRESSION) {
return new DartShiftExpressionImpl(node);
}
else if (type == SHIFT_OPERATOR) {
return new DartShiftOperatorImpl(node);
}
else if (type == SHORT_TEMPLATE_ENTRY) {
return new DartShortTemplateEntryImpl(node);
}
else if (type == SHOW_COMBINATOR) {
return new DartShowCombinatorImpl(node);
}
else if (type == SIMPLE_FORMAL_PARAMETER) {
return new DartSimpleFormalParameterImpl(node);
}
else if (type == SIMPLE_TYPE) {
return new DartSimpleTypeImpl(node);
}
else if (type == STATEMENTS) {
return new DartStatementsImpl(node);
}
else if (type == STRING_LITERAL_EXPRESSION) {
return new DartStringLiteralExpressionImpl(node);
}
else if (type == SUFFIX_EXPRESSION) {
return new DartSuffixExpressionImpl(node);
}
else if (type == SUPERCLASS) {
return new DartSuperclassImpl(node);
}
else if (type == SUPER_CALL_OR_FIELD_INITIALIZER) {
return new DartSuperCallOrFieldInitializerImpl(node);
}
else if (type == SUPER_EXPRESSION) {
return new DartSuperExpressionImpl(node);
}
else if (type == SWITCH_CASE) {
return new DartSwitchCaseImpl(node);
}
else if (type == SWITCH_STATEMENT) {
return new DartSwitchStatementImpl(node);
}
else if (type == SYMBOL_LITERAL_EXPRESSION) {
return new DartSymbolLiteralExpressionImpl(node);
}
else if (type == TERNARY_EXPRESSION) {
return new DartTernaryExpressionImpl(node);
}
else if (type == THIS_EXPRESSION) {
return new DartThisExpressionImpl(node);
}
else if (type == THROW_EXPRESSION) {
return new DartThrowExpressionImpl(node);
}
else if (type == TRY_STATEMENT) {
return new DartTryStatementImpl(node);
}
else if (type == TYPE) {
return new DartTypeImpl(node);
}
else if (type == TYPED_FUNCTION_TYPE) {
return new DartTypedFunctionTypeImpl(node);
}
else if (type == TYPE_ARGUMENTS) {
return new DartTypeArgumentsImpl(node);
}
else if (type == TYPE_LIST) {
return new DartTypeListImpl(node);
}
else if (type == TYPE_PARAMETER) {
return new DartTypeParameterImpl(node);
}
else if (type == TYPE_PARAMETERS) {
return new DartTypeParametersImpl(node);
}
else if (type == UNTYPED_FUNCTION_TYPE) {
return new DartUntypedFunctionTypeImpl(node);
}
else if (type == URI_ELEMENT) {
return new DartUriElementImpl(node);
}
else if (type == USER_DEFINABLE_OPERATOR) {
return new DartUserDefinableOperatorImpl(node);
}
else if (type == VALUE_EXPRESSION) {
return new DartValueExpressionImpl(node);
}
else if (type == VAR_ACCESS_DECLARATION) {
return new DartVarAccessDeclarationImpl(node);
}
else if (type == VAR_DECLARATION_LIST) {
return new DartVarDeclarationListImpl(node);
}
else if (type == VAR_DECLARATION_LIST_PART) {
return new DartVarDeclarationListPartImpl(node);
}
else if (type == VAR_INIT) {
return new DartVarInitImpl(node);
}
else if (type == VOID_TYPE_FUNCTION_TYPE) {
return new DartVoidTypeFunctionTypeImpl(node);
}
else if (type == WHILE_STATEMENT) {
return new DartWhileStatementImpl(node);
}
else if (type == YIELD_EACH_STATEMENT) {
return new DartYieldEachStatementImpl(node);
}
else if (type == YIELD_STATEMENT) {
return new DartYieldStatementImpl(node);
}
throw new AssertionError("Unknown element type: " + type);
}
}
}