public ForInstruction(ScopePrototype scopePrototype, ForExpression forExpression) : base(scopePrototype) { ForExpression = forExpression; Block = new Block(scopePrototype, new List <string> { forExpression.ElementName }, scopePrototype.FunctionName); }
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); }
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); } }
public Instruction(ScopePrototype scopePrototype) { ScopePrototype = scopePrototype; }
public HtmlInlineTagInstruction(ScopePrototype scopePrototype, HtmlInlineTag htmlInlineTag) : base(scopePrototype) { HtmlInlineTag = htmlInlineTag; }
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>(); }
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; }