예제 #1
0
파일: Scope.cs 프로젝트: ghord/SharpExpress
        public Scope CreateChildScope(IRepeatStatement repeat)
        {
            if (repeat.IncrementVariable == null)
            {
                return(this);
            }

            return(new Scope(
                       DeclaredIdentifiers.SetItem(repeat.IncrementVariable.Name, repeat.IncrementVariable),
                       DeclaredDataTypes));
        }
예제 #2
0
파일: Scope.cs 프로젝트: ghord/SharpExpress
 public Scope CreateChildScope(IQueryExpression query)
 {
     return(new Scope(
                DeclaredIdentifiers.SetItem(query.VariableDeclaration.Name, query.VariableDeclaration),
                DeclaredDataTypes));
 }