示例#1
0
        public Scope CreateChildScope(IRepeatStatement repeat)
        {
            if (repeat.IncrementVariable == null)
            {
                return(this);
            }

            return(new Scope(
                       DeclaredIdentifiers.SetItem(repeat.IncrementVariable.Name, repeat.IncrementVariable),
                       DeclaredDataTypes));
        }
示例#2
0
 public Scope CreateChildScope(IQueryExpression query)
 {
     return(new Scope(
                DeclaredIdentifiers.SetItem(query.VariableDeclaration.Name, query.VariableDeclaration),
                DeclaredDataTypes));
 }