public ForInstruction(ScopePrototype scopePrototype, ForExpression forExpression) : base(scopePrototype)
 {
     ForExpression = forExpression;
     Block         = new Block(scopePrototype, new List <string> {
         forExpression.ElementName
     }, scopePrototype.FunctionName);
 }
Exemple #2
0
 public Node(Node node, ScopePrototype scopePrototype, Scope upperScope)
 {
     NestedLevel   = node.NestedLevel;
     NewLine       = node.NewLine;
     FunctionsDict = node.FunctionsDict;
     StreamWriter  = node.StreamWriter;
     Scope         = new Scope(scopePrototype, upperScope);
 }
Exemple #3
0
 public Block(ScopePrototype upperScope, List <string> variables, string functionName)
 {
     NestedBlocks   = new List <Executable>();
     ScopePrototype = new ScopePrototype(functionName);
     ScopePrototype.UpperScopePrototype = upperScope;
     foreach (var variable in variables)
     {
         ScopePrototype.TryAddVariable(variable);
     }
 }
Exemple #4
0
 public Instruction(ScopePrototype scopePrototype)
 {
     ScopePrototype = scopePrototype;
 }
 public HtmlInlineTagInstruction(ScopePrototype scopePrototype, HtmlInlineTag htmlInlineTag) : base(scopePrototype)
 {
     HtmlInlineTag = htmlInlineTag;
 }
Exemple #6
0
 public StringComponentInstruction(ScopePrototype upperScope, IStringComponent literal) : base(upperScope)
 {
     Literal = literal;
 }
 public HtmlTagInstruction(ScopePrototype scopePrototype, HtmlTag htmlTag) : base(scopePrototype)
 {
     HtmlTag = htmlTag;
     Block   = new List <Executable>();
 }
 public IfInstruction(ScopePrototype scopePrototype, IfExpression ifExpression) : base(scopePrototype)
 {
     IfExpression = ifExpression;
     IfBlock      = new List <Executable>();
     ElseBlock    = new List <Executable>();
 }
Exemple #9
0
 public Scope(ScopePrototype scopePrototype, Scope upperScope)
 {
     UpperScope     = upperScope;
     ScopePrototype = scopePrototype;
     VariableValues = new Dictionary <string, AssignedValue>();
 }
 public FunctionCallInstruction(ScopePrototype scopePrototype, FunctionCall functionCall) : base(scopePrototype)
 {
     FunctionCall = functionCall;
 }