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