Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 26) sorted by relevance

12

/template/twigstarter/vendor/twig/twig/src/
DExpressionParser.php103 $stream = $this->parser->getStream();
106 if ($stream->look(1)->test(/* Token::ARROW_TYPE */ 12)) {
107 $line = $stream->getCurrent()->getLine();
108 $token = $stream->expect(/* Token::NAME_TYPE */ 5);
110 $stream->expect(/* Token::ARROW_TYPE */ 12);
117 if (!$stream->look($i)->test(/* Token::PUNCTUATION_TYPE */ 9, '(')) {
124 if (!$stream->look($i)->test(/* Token::PUNCTUATION_TYPE */ 9, ',')) {
129 if (!$stream->look($i)->test(/* Token::PUNCTUATION_TYPE */ 9, ')')) {
133 if (!$stream->look($i)->test(/* Token::ARROW_TYPE */ 12)) {
138 $token = $stream->expect(/* Token::PUNCTUATION_TYPE */ 9, '(');
[all …]
DParser.php38 private $stream; variable in Twig\\Parser
62 public function parse(TokenStream $stream, $test = null, $dropNeedle = false) argument
87 $this->stream = $stream;
104 $e->setSourceContext($this->stream->getSourceContext());
108 $e->setTemplateLine($this->stream->getCurrent()->getLine());
114 …Node($this->macros), new Node($this->traits), $this->embeddedTemplates, $stream->getSourceContext(…
132 while (!$this->stream->isEOF()) {
135 $token = $this->stream->next();
140 $token = $this->stream->next();
142 $this->stream->expect(/* Token::VAR_END_TYPE */ 4);
[all …]
DEnvironment.php556 public function parse(TokenStream $stream) argument
562 return $this->parser->parse($stream);
/template/twigstarter/vendor/twig/twig/src/TokenParser/
DForTokenParser.php39 $stream = $this->parser->getStream();
41 $stream->expect(/* Token::OPERATOR_TYPE */ 8, 'in');
45 if ($stream->nextIf(/* Token::NAME_TYPE */ 5, 'if')) {
46 …ad (if your condition depends on a variable updated inside the loop).', $stream->getSourceContext(…
51 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
53 if ('else' == $stream->next()->getValue()) {
54 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
59 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
73 $this->checkLoopUsageCondition($stream, $ifexpr);
74 $this->checkLoopUsageBody($stream, $body);
[all …]
DUseTokenParser.php36 $stream = $this->parser->getStream();
39 …te references in a "use" statement must be a string.', $stream->getCurrent()->getLine(), $stream->…
43 if ($stream->nextIf('with')) {
45 $name = $stream->expect(/* Token::NAME_TYPE */ 5)->getValue();
48 if ($stream->nextIf('as')) {
49 $alias = $stream->expect(/* Token::NAME_TYPE */ 5)->getValue();
54 if (!$stream->nextIf(/* Token::PUNCTUATION_TYPE */ 9, ',')) {
60 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
DSetTokenParser.php33 $stream = $this->parser->getStream();
37 if ($stream->nextIf(/* Token::OPERATOR_TYPE */ 8, '=')) {
40 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
43 …t have the same number of variables and assignments.', $stream->getCurrent()->getLine(), $stream->…
49 …ng set with a block, you cannot have a multi-target.', $stream->getCurrent()->getLine(), $stream->…
52 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
55 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
DBlockTokenParser.php35 $stream = $this->parser->getStream();
36 $name = $stream->expect(/* Token::NAME_TYPE */ 5)->getValue();
38 …e, $this->parser->getBlock($name)->getTemplateLine()), $stream->getCurrent()->getLine(), $stream->…
44 if ($stream->nextIf(/* Token::BLOCK_END_TYPE */ 3)) {
46 if ($token = $stream->nextIf(/* Token::NAME_TYPE */ 5)) {
50 …ock for block "%s" (but "%s" given).', $name, $value), $stream->getCurrent()->getLine(), $stream->…
58 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
DIfTokenParser.php37 $stream = $this->parser->getStream();
38 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
45 switch ($stream->next()->getValue()) {
47 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
53 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
64 … close the "if" block started at line %d).', $lineno), $stream->getCurrent()->getLine(), $stream->…
68 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
DFromTokenParser.php28 $stream = $this->parser->getStream();
29 $stream->expect(/* Token::NAME_TYPE */ 5, 'import');
33 $name = $stream->expect(/* Token::NAME_TYPE */ 5)->getValue();
36 if ($stream->nextIf('as')) {
37 $alias = $stream->expect(/* Token::NAME_TYPE */ 5)->getValue();
42 if (!$stream->nextIf(/* Token::PUNCTUATION_TYPE */ 9, ',')) {
47 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
DMacroTokenParser.php32 $stream = $this->parser->getStream();
33 $name = $stream->expect(/* Token::NAME_TYPE */ 5)->getValue();
37 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
40 if ($token = $stream->nextIf(/* Token::NAME_TYPE */ 5)) {
44 …cro for macro "%s" (but "%s" given).', $name, $value), $stream->getCurrent()->getLine(), $stream->…
48 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
DIncludeTokenParser.php38 $stream = $this->parser->getStream();
41 if ($stream->nextIf(/* Token::NAME_TYPE */ 5, 'ignore')) {
42 $stream->expect(/* Token::NAME_TYPE */ 5, 'missing');
48 if ($stream->nextIf(/* Token::NAME_TYPE */ 5, 'with')) {
53 if ($stream->nextIf(/* Token::NAME_TYPE */ 5, 'only')) {
57 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
DAutoEscapeTokenParser.php27 $stream = $this->parser->getStream();
29 if ($stream->test(/* Token::BLOCK_END_TYPE */ 3)) {
34 …ror('An escaping strategy must be a string or false.', $stream->getCurrent()->getLine(), $stream->…
39 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
41 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
DWithTokenParser.php26 $stream = $this->parser->getStream();
30 if (!$stream->test(/* Token::BLOCK_END_TYPE */ 3)) {
32 $only = (bool) $stream->nextIf(/* Token::NAME_TYPE */ 5, 'only');
35 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
39 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
DExtendsTokenParser.php28 $stream = $this->parser->getStream();
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 … SyntaxError('Multiple extends tags are forbidden.', $token->getLine(), $stream->getSourceContext(…
41 $stream->expect(Token::BLOCK_END_TYPE);
DSpacelessTokenParser.php33 $stream = $this->parser->getStream();
36 …ce Twig 2.7, use the "spaceless" filter with the "apply" tag instead.', $stream->getSourceContext(…
38 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
40 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
DSandboxTokenParser.php33 $stream = $this->parser->getStream();
34 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
36 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
46 …ags are allowed within a "sandbox" section.', $node->getTemplateLine(), $stream->getSourceContext(…
DFilterTokenParser.php33 $stream = $this->parser->getStream();
36 …at line %d is deprecated since Twig 2.9, use the "apply" tag instead.', $stream->getSourceContext(…
42 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
45 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
DEmbedTokenParser.php26 $stream = $this->parser->getStream();
40 $stream->injectTokens([
47 $module = $this->parser->parse($stream, [$this, 'decideBlockEnd'], true);
56 $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
/template/strap/vendor/antlr/antlr4-php-runtime/src/
H A DParserTraceListener.php23 $stream = $this->parser->getTokenStream();
24 $token = $stream !== null ? $stream->LT(1) : null;
44 $stream = $this->parser->getTokenStream();
45 $token = $stream !== null ? $stream->LT(1) : null;
H A DCommonToken.php274 $stream = $this->source->b;
276 if ($stream !== null && !$stream instanceof CharStream) {
280 return $stream;
/template/twigstarter/vendor/symfony/polyfill-php72/
DPhp72.php102 public static function sapi_windows_vt100_support($stream, $enable = null) argument
104 if (!\is_resource($stream)) {
105 …_windows_vt100_support() expects parameter 1 to be resource, '.\gettype($stream).' given', \E_USER…
110 $meta = stream_get_meta_data($stream);
119 if (false === $enable || !self::stream_isatty($stream)) {
134 public static function stream_isatty($stream) argument
136 if (!\is_resource($stream)) {
137 …trigger_error('stream_isatty() expects parameter 1 to be resource, '.\gettype($stream).' given', \…
143 $stat = @fstat($stream);
148 return \function_exists('posix_isatty') && @posix_isatty($stream);
Dbootstrap.php35 …function sapi_windows_vt100_support($stream, $enable = null) { return p\Php72::sapi_windows_vt100_… argument
38 function stream_isatty($stream) { return p\Php72::stream_isatty($stream); } argument
/template/strap/
H A Dyarn.lock202 combined-stream@^1.0.8:
204 resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz"
207 delayed-stream "~1.0.0"
258 delayed-stream@~1.0.0:
260 resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz"
351 get-stream "^8.0.1"
353 is-stream "^3.0.0"
354 merge-stream "^2.0.0"
366 combined-stream "^1.0.8"
404 get-stream@^8.0.1:
[all …]
/template/strap/vendor/antlr/antlr4-php-runtime/src/Error/
H A DDefaultErrorStrategy.php561 $stream = $recognizer->getInputStream();
563 if ($stream === null) {
573 $currentSymbolType = $stream->LA(1);
/template/ghw/css/
Dfont-style.css3 …src: url(data:application/octet-stream;base64,d09GRk9UVE8AAAZUAAoAAAAAB6AAAAAAAAAAAAAAAAAAAAAAAAAA…

12