-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This bug was being caused by a faulty optimization. This fix disables the optimization.
- Loading branch information
1 parent
4c41625
commit 0e601db
Showing
13 changed files
with
144 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/** | ||
* @fileoverview Compiled template for file | ||
* | ||
* scope.twig | ||
* | ||
* @suppress {checkTypes|fileoverviewTags} | ||
*/ | ||
|
||
goog.provide('scope'); | ||
|
||
goog.require('twig'); | ||
goog.require('twig.filter'); | ||
|
||
/** | ||
* @constructor | ||
* @param {twig.Environment} env | ||
* @extends {twig.Template} | ||
*/ | ||
scope = function(env) { | ||
twig.Template.call(this, env); | ||
}; | ||
twig.inherits(scope, twig.Template); | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
scope.prototype.getParent_ = function(context) { | ||
return false; | ||
}; | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
scope.prototype.render_ = function(sb, context, blocks) { | ||
// line 1 | ||
context["example"] = 12345; | ||
if (false) { | ||
sb.append(twig.filter.escape(this.env_, ("example" in context ? context["example"] : null), "html", null, true)); | ||
} | ||
sb.append(3); | ||
sb.append("\n"); | ||
}; | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
scope.prototype.getTemplateName = function() { | ||
return "scope"; | ||
}; | ||
|
||
/** | ||
* Returns whether this template can be used as trait. | ||
* | ||
* @return {boolean} | ||
*/ | ||
scope.prototype.isTraitable = function() { | ||
return false; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
/* scope.twig */ | ||
class __TwigTemplate_6c16a53e9ecd87c1c4276ac1be26ad50 extends Twig_Template | ||
{ | ||
public function __construct(Twig_Environment $env) | ||
{ | ||
parent::__construct($env); | ||
|
||
$this->parent = false; | ||
|
||
$this->blocks = array( | ||
); | ||
} | ||
|
||
protected function doDisplay(array $context, array $blocks = array()) | ||
{ | ||
// line 1 | ||
$context["example"] = 12345; | ||
if (false) { | ||
echo twig_escape_filter($this->env, (isset($context["example"]) ? $context["example"] : null), "html", null, true); | ||
} | ||
echo 3; | ||
echo " | ||
"; | ||
} | ||
|
||
public function getTemplateName() | ||
{ | ||
return "scope.twig"; | ||
} | ||
|
||
public function isTraitable() | ||
{ | ||
return false; | ||
} | ||
|
||
public function getDebugInfo() | ||
{ | ||
return array ( 44 => 4, 21 => 1, 70 => 12, 67 => 11, 62 => 10, 57 => 6, 54 => 5, 43 => 14, 40 => 11, 34 => 2, 32 => 5, 28 => 4, 23 => 1, 48 => 4, 42 => 5, 38 => 3, 36 => 2, 19 => 1, 20 => 1,); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% set example = 12345 %}{% if false %}{{ example }}{% endif %}{{ example }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.