/** * Copyright 2017 Matt Acosta * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * The language constructs that are currently being parsed. */ export declare const enum ParseContext { /** * Statements appearing in the global scope. */ SourceElements = 0, /** * Statements enclosed by '{' and '}'. */ CompoundStatementElements = 2, /** * Statements within a namespace group declaration. */ NamespaceElements = 4, /** * Statements enclosed by `declare` and `enddeclare`. */ DeclareBlockElements = 8, /** * Statements enclosed by `for` and `endfor`. */ ForBlockElements = 16, /** * Statements enclosed by `foreach` and `endforeach`. */ ForEachBlockElements = 32, /** * Statements after an `if` or `elseif` condition and ended by `elseif`, * `else`, or `endif`. */ IfBlockElements = 64, /** * Statements enclosed by `else` and `endif`. */ IfElseBlockElements = 128, /** * Statements enclosed by `while` and `endwhile`. */ WhileBlockElements = 256, /** * Case clauses within a switch statement. */ SwitchElements = 512, /** * Case clauses enclosed by `switch` and `endswitch`. */ SwitchBlockElements = 1024, /** * Statements appearing after a switch case (or default) label. */ CaseClauseElements = 2048, ClassMembers = 4096, InterfaceMembers = 8192, TraitMembers = 16384, ConstantDeclaration = 32768, Length = 16 }