Ejemplo n.º 1
0
        public Scope CreateChildScope(IRepeatStatement repeat)
        {
            if (repeat.IncrementVariable == null)
            {
                return(this);
            }

            return(new Scope(
                       DeclaredIdentifiers.SetItem(repeat.IncrementVariable.Name, repeat.IncrementVariable),
                       DeclaredDataTypes));
        }
Ejemplo n.º 2
0
 public Scope CreateChildScope(IQueryExpression query)
 {
     return(new Scope(
                DeclaredIdentifiers.SetItem(query.VariableDeclaration.Name, query.VariableDeclaration),
                DeclaredDataTypes));
 }