/** * 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. */ /** * Lexing states used when tokenizing PHP files. */ export declare enum PhpLexerState { /** * The lexing state used when the lexer is within the host language that * contains a PHP script. * * This is the default state. */ InHostLanguage = 0, /** * The default lexing state when rescanning a `StringTemplate`. */ InDoubleQuote = 1, /** * The default lexing state when rescanning a `FlexdocTemplate`. */ InFlexibleHeredoc = 2, /** * The default lexing state when rescanning a `FlexdocTemplate` that starts * with a nowdoc label. */ InFlexibleNowdoc = 3, /** * The default lexing state when rescanning a `HeredocTemplate`. */ InHeredoc = 4, /** * The default lexing state when rescanning a `HeredocTemplate` that starts * with a nowdoc label. */ InNowdoc = 5, /** * The lexing state used when the lexer is within a PHP script. * * @see PhpLexerState.InHostLanguage */ InScript = 6, /** * The default lexing state when rescanning a `ShellCommandTemplate`. */ InShellCommand = 7, /** * A lexing state used when scanning an element access expression within a * string interpolation. */ InVariableOffset = 8, /** * A lexing state used when rescanning the whitespace after a line break. */ LookingForHeredocIndent = 9, /** * A lexing state used when rescanning heredoc start or end labels. */ LookingForHeredocLabel = 10, /** * A lexing state used when scanning an object access expression within a * string interpolation. */ LookingForProperty = 11, /** * A lexing state used when scanning an indirect variable name. */ LookingForVariableName = 12 }