Home
last modified time | relevance | path

Searched refs:token (Results 1 – 25 of 32) sorted by relevance

12

/template/twigstarter/vendor/twig/twig/src/
H A DExpressionParser.php109 $names = [new AssignNameExpression($token->getValue(), $token->getLine())];
139 $line = $token->getLine();
144 $names[] = new AssignNameExpression($token->getValue(), $token->getLine());
237 $node = new NameExpression($token->getValue(), $token->getLine());
244 $node = new ConstantExpression($token->getValue(), $token->getLine());
256 $node = new NameExpression($token->getValue(), $token->getLine());
301 $nodes[] = new ConstantExpression($token->getValue(), $token->getLine());
370 $key = new ConstantExpression($token->getValue(), $token->getLine());
379 $key = new ConstantExpression($token->getValue(), $token->getLine());
403 if ('.' == $token->getValue() || '[' == $token->getValue()) {
[all …]
H A DParser.php135 $token = $this->stream->next();
136 $rv[] = new TextNode($token->getValue(), $token->getLine());
140 $token = $this->stream->next();
143 $rv[] = new PrintNode($expr, $token->getLine());
148 $token = $this->getCurrentToken();
154 if (null !== $test && $test($token)) {
166 if (!isset($this->handlers[$token->getValue()])) {
168 …$e = new SyntaxError(sprintf('Unexpected "%s" tag', $token->getValue()), $token->getLine(), $this-…
174 …$e = new SyntaxError(sprintf('Unknown "%s" tag.', $token->getValue()), $token->getLine(), $this->s…
183 $subparser = $this->handlers[$token->getValue()];
[all …]
H A DTokenStream.php73 $token = $this->tokens[$this->current];
74 if (!$token->test($type, $value)) {
75 $line = $token->getLine();
78 Token::typeToEnglish($token->getType()),
79 $token->getValue() ? sprintf(' of value "%s"', $token->getValue()) : '',
87 return $token;
/template/twigstarter/vendor/twig/twig/src/TokenParser/
H A DEmbedTokenParser.php24 public function parse(Token $token) argument
32 …tToken = $fakeParentToken = new Token(/* Token::STRING_TYPE */ 7, '__parent__', $token->getLine());
34 …ntToken = new Token(/* Token::STRING_TYPE */ 7, $parent->getAttribute('value'), $token->getLine());
36 …arentToken = new Token(/* Token::NAME_TYPE */ 5, $parent->getAttribute('name'), $token->getLine());
41 new Token(/* Token::BLOCK_START_TYPE */ 1, '', $token->getLine()),
42 new Token(/* Token::NAME_TYPE */ 5, 'extends', $token->getLine()),
44 new Token(/* Token::BLOCK_END_TYPE */ 3, '', $token->getLine()),
58 …me(), $module->getAttribute('index'), $variables, $only, $ignoreMissing, $token->getLine(), $this-…
61 public function decideBlockEnd(Token $token) argument
63 return $token->test('endembed');
H A DMacroTokenParser.php29 public function parse(Token $token) argument
31 $lineno = $token->getLine();
40 if ($token = $stream->nextIf(/* Token::NAME_TYPE */ 5)) {
41 $value = $token->getValue();
55 public function decideBlockEnd(Token $token) argument
57 return $token->test('endmacro');
H A DIfTokenParser.php33 public function parse(Token $token) argument
35 $lineno = $token->getLine();
73 public function decideIfFork(Token $token) argument
75 return $token->test(['elseif', 'else', 'endif']);
78 public function decideIfEnd(Token $token) argument
80 return $token->test(['endif']);
H A DBlockTokenParser.php32 public function parse(Token $token) argument
34 $lineno = $token->getLine();
46 if ($token = $stream->nextIf(/* Token::NAME_TYPE */ 5)) {
47 $value = $token->getValue();
67 public function decideBlockEnd(Token $token) argument
69 return $token->test('endblock');
H A DSpacelessTokenParser.php31 public function parse(Token $token) argument
34 $lineno = $token->getLine();
45 public function decideSpacelessEnd(Token $token) argument
47 return $token->test('endspaceless');
H A DWithTokenParser.php24 public function parse(Token $token) argument
41 return new WithNode($body, $variables, $only, $token->getLine(), $this->getTag());
44 public function decideWithEnd(Token $token) argument
46 return $token->test('endwith');
H A DExtendsTokenParser.php26 public function parse(Token $token) argument
31 …throw new SyntaxError('Cannot use "extend" in a block.', $token->getLine(), $stream->getSourceCont…
33 …throw new SyntaxError('Cannot use "extend" in a macro.', $token->getLine(), $stream->getSourceCont…
37 …throw new SyntaxError('Multiple extends tags are forbidden.', $token->getLine(), $stream->getSourc…
H A DSandboxTokenParser.php31 public function parse(Token $token) argument
51 return new SandboxNode($body, $token->getLine(), $this->getTag());
54 public function decideBlockEnd(Token $token) argument
56 return $token->test('endsandbox');
H A DForTokenParser.php36 public function parse(Token $token) argument
38 $lineno = $token->getLine();
80 public function decideForFork(Token $token) argument
82 return $token->test(['else', 'endfor']);
85 public function decideForEnd(Token $token) argument
87 return $token->test('endfor');
H A DAutoEscapeTokenParser.php24 public function parse(Token $token) argument
26 $lineno = $token->getLine();
46 public function decideBlockEnd(Token $token) argument
48 return $token->test('endautoescape');
H A DApplyTokenParser.php29 public function parse(Token $token) argument
31 $lineno = $token->getLine();
49 public function decideApplyEnd(Token $token) argument
51 return $token->test('endapply');
H A DSetTokenParser.php30 public function parse(Token $token) argument
32 $lineno = $token->getLine();
61 public function decideBlockEnd(Token $token) argument
63 return $token->test('endset');
H A DFilterTokenParser.php31 public function parse(Token $token) argument
34 $lineno = $token->getLine();
53 public function decideBlockEnd(Token $token) argument
55 return $token->test('endfilter');
H A DImportTokenParser.php25 public function parse(Token $token) argument
29 …ssion($this->parser->getStream()->expect(/* Token::NAME_TYPE */ 5)->getValue(), $token->getLine());
34 …return new ImportNode($macro, $var, $token->getLine(), $this->getTag(), $this->parser->isMainScope…
H A DFromTokenParser.php25 public function parse(Token $token) argument
49 $var = new AssignNameExpression($this->parser->getVarName(), $token->getLine());
50 …$node = new ImportNode($macro, $var, $token->getLine(), $this->getTag(), $this->parser->isMainScop…
H A DFlushTokenParser.php24 public function parse(Token $token) argument
28 return new FlushNode($token->getLine(), $this->getTag());
H A DDoTokenParser.php22 public function parse(Token $token) argument
28 return new DoNode($expr, $token->getLine(), $this->getTag());
H A DDeprecatedTokenParser.php29 public function parse(Token $token) argument
35 return new DeprecatedNode($expr, $token->getLine(), $this->getTag());
H A DIncludeTokenParser.php27 public function parse(Token $token) argument
33 …return new IncludeNode($expr, $variables, $only, $ignoreMissing, $token->getLine(), $this->getTag(…
H A DTokenParserInterface.php38 public function parse(Token $token); argument
H A DUseTokenParser.php33 public function parse(Token $token) argument
/template/scanlines/htc/PIE-1.0beta5/
H A DPIE_uncompressed.js1429 …return token && token.isLengthOrPercent() || ( token.tokenType & type_ident && token.tokenValue in…
1433 …return token && ( ( token.isLengthOrPercent() && PIE.getLength( token.tokenValue ) ) || ( token.to…
1527 if( ( token = tokenizer.next() ) && ( token.tokenType & type_ident ) &&
1548 if( token.tokenType & type_ident && token.tokenValue in this.sizeIdents ) {
1853 while( ( token = tokenizer.next() ) && token.isLengthOrPercent() ) {
1875 if( token ) {
1876 … if( token.tokenType & PIE.Tokenizer.Type.OPERATOR && token.tokenValue === '/' ) {
1924 return token && ( token.tokenType & Type.OPERATOR ) && ( token.tokenValue === '/' );
1928 return token && ( token.tokenType & IDENT ) && ( token.tokenValue === 'fill' );
1945 …return !token.isLengthOrPercent() && !( ( token.tokenType & IDENT ) && token.tokenValue === 'auto'…
[all …]

12