상속: ToplevelBlock
예제 #1
0
파일: linq.cs 프로젝트: stabbylambda/mono
		public Join (QueryBlock block, SimpleMemberName lt, Expression inner, QueryBlock outerSelector, QueryBlock innerSelector, Location loc)
			: base (block, lt, inner, loc)
		{
			this.outer_selector = outerSelector;
			this.inner_selector = innerSelector;
		}
예제 #2
0
파일: linq.cs 프로젝트: alisci01/mono
		public Where (QueryBlock block, BooleanExpression expr, Location loc)
			: base (block, expr, loc)
		{
		}
예제 #3
0
파일: linq.cs 프로젝트: HusterYP/VimConf
 public SelectMany(QueryBlock block, RangeVariable identifier, Expression expr, Location loc)
     : base(block, identifier, expr, loc)
 {
 }
예제 #4
0
파일: linq.cs 프로젝트: HusterYP/VimConf
 public OrderByDescending(QueryBlock block, Expression expr)
     : base(block, expr, expr.Location)
 {
 }
예제 #5
0
파일: linq.cs 프로젝트: HusterYP/VimConf
 public QueryStartClause(QueryBlock block, Expression expr, RangeVariable identifier, Location loc)
     : base(block, identifier, expr, loc)
 {
     block.AddRangeVariable(identifier);
 }
예제 #6
0
파일: linq.cs 프로젝트: HusterYP/VimConf
 public GroupJoin(QueryBlock block, RangeVariable lt, Expression inner,
                  QueryBlock outerSelector, QueryBlock innerSelector, RangeVariable into, Location loc)
     : base(block, lt, inner, outerSelector, innerSelector, loc)
 {
     this.into = into;
 }
예제 #7
0
파일: linq.cs 프로젝트: alisci01/mono
		public QueryStartClause (QueryBlock block, Expression expr, RangeVariable identifier, Location loc)
			: base (block, identifier, expr, loc)
		{
			block.AddRangeVariable (identifier);
		}
예제 #8
0
파일: linq.cs 프로젝트: HusterYP/VimConf
 protected AQueryClause(QueryBlock block, Expression expr, Location loc)
     : base(expr)
 {
     this.block = block;
     this.loc   = loc;
 }
예제 #9
0
파일: linq.cs 프로젝트: alisci01/mono
		protected AQueryClause (QueryBlock block, Expression expr, Location loc)
			 : base (expr)
		{
			this.block = block;
			this.loc = loc;
		}
예제 #10
0
파일: linq.cs 프로젝트: alisci01/mono
		protected ARangeVariableQueryClause (QueryBlock block, RangeVariable identifier, Expression expr, Location loc)
			: base (block, expr, loc)
		{
			this.identifier = identifier;
		}
예제 #11
0
파일: linq.cs 프로젝트: stabbylambda/mono
			public RangeVariable (QueryBlock block, Location loc)
			{
				Block = block;
				Location = loc;
			}
예제 #12
0
파일: linq.cs 프로젝트: stabbylambda/mono
		public SelectMany (QueryBlock block, SimpleMemberName identifier, Expression expr, Location loc)
			: base (block, identifier, expr, loc)
		{
		}
예제 #13
0
파일: linq.cs 프로젝트: stabbylambda/mono
		public GroupJoin (QueryBlock block, SimpleMemberName lt, Expression inner,
			QueryBlock outerSelector, QueryBlock innerSelector, SimpleMemberName into, Location loc)
			: base (block, lt, inner, outerSelector, innerSelector, loc)
		{
			this.into = into;
		}
예제 #14
0
파일: linq.cs 프로젝트: alisci01/mono
		public OrderByDescending (QueryBlock block, Expression expr)
			: base (block, expr, expr.Location)
		{
		}
예제 #15
0
파일: linq.cs 프로젝트: alisci01/mono
		public GroupBy (QueryBlock block, Expression elementSelector, QueryBlock elementBlock, Expression keySelector, Location loc)
			: base (block, keySelector, loc)
		{
			//
			// Optimizes clauses like `group A by A'
			//
			if (!elementSelector.Equals (keySelector)) {
				this.element_selector = elementSelector;
				this.element_block = elementBlock;
			}
		}
예제 #16
0
파일: linq.cs 프로젝트: alisci01/mono
		public ThenByDescending (QueryBlock block, Expression expr)
			: base (block, expr)
		{
		}
예제 #17
0
파일: linq.cs 프로젝트: alisci01/mono
		public Join (QueryBlock block, RangeVariable lt, Expression inner, QueryBlock outerSelector, QueryBlock innerSelector, Location loc)
			: base (block, lt, inner, loc)
		{
			this.outer_selector = outerSelector;
			this.inner_selector = innerSelector;
		}
예제 #18
0
파일: linq.cs 프로젝트: HusterYP/VimConf
 protected ARangeVariableQueryClause(QueryBlock block, RangeVariable identifier, Expression expr, Location loc)
     : base(block, expr, loc)
 {
     this.identifier = identifier;
 }
예제 #19
0
파일: linq.cs 프로젝트: alisci01/mono
		public GroupJoin (QueryBlock block, RangeVariable lt, Expression inner,
			QueryBlock outerSelector, QueryBlock innerSelector, RangeVariable into, Location loc)
			: base (block, lt, inner, outerSelector, innerSelector, loc)
		{
			this.into = into;
		}
예제 #20
0
파일: linq.cs 프로젝트: HusterYP/VimConf
 public Join(QueryBlock block, RangeVariable lt, Expression inner, QueryBlock outerSelector, QueryBlock innerSelector, Location loc)
     : base(block, lt, inner, loc)
 {
     this.outer_selector = outerSelector;
     this.inner_selector = innerSelector;
 }
예제 #21
0
파일: linq.cs 프로젝트: alisci01/mono
		public Select (QueryBlock block, Expression expr, Location loc)
			: base (block, expr, loc)
		{
		}
예제 #22
0
파일: linq.cs 프로젝트: HusterYP/VimConf
 public Select(QueryBlock block, Expression expr, Location loc)
     : base(block, expr, loc)
 {
 }
예제 #23
0
파일: linq.cs 프로젝트: alisci01/mono
		public SelectMany (QueryBlock block, RangeVariable identifier, Expression expr, Location loc)
			: base (block, identifier, expr, loc)
		{
		}
예제 #24
0
파일: linq.cs 프로젝트: HusterYP/VimConf
 public Where(QueryBlock block, Expression expr, Location loc)
     : base(block, expr, loc)
 {
 }
예제 #25
0
파일: linq.cs 프로젝트: alisci01/mono
		protected override void CreateArguments (ResolveContext ec, Parameter parameter, ref Arguments args)
		{
			if (args == null) {
				if (IdentifierType != null)
					expr = CreateCastExpression (expr);

				base.CreateArguments (ec, parameter, ref args);
			}

			Expression result_selector_expr;
			QueryBlock result_block;

			var target = GetIntoVariable ();
			var target_param = new ImplicitLambdaParameter (target.Name, target.Location);

			//
			// When select follows use it as a result selector
			//
			if (next is Select) {
				result_selector_expr = next.Expr;

				result_block = next.block;
				result_block.SetParameters (parameter, target_param);

				next = next.next;
			} else {
				result_selector_expr = CreateRangeVariableType (ec, parameter, target, new SimpleName (target.Name, target.Location));

				result_block = new QueryBlock (ec.Compiler, block.Parent, block.StartLocation);
				result_block.SetParameters (parameter, target_param);
			}

			LambdaExpression result_selector = new LambdaExpression (Location);
			result_selector.Block = result_block;
			result_selector.Block.AddStatement (new ContextualReturn (result_selector_expr));

			args.Add (new Argument (result_selector));
		}
예제 #26
0
파일: linq.cs 프로젝트: HusterYP/VimConf
 public ThenByDescending(QueryBlock block, Expression expr)
     : base(block, expr)
 {
 }
예제 #27
0
파일: linq.cs 프로젝트: stabbylambda/mono
		protected ARangeVariableQueryClause (QueryBlock block, SimpleMemberName identifier, Expression expr, Location loc)
			: base (block, expr, loc)
		{
			range_variable = identifier;
		}