本文整理汇总了C#中Mono.CSharp.Linq.RangeVariable类的典型用法代码示例。如果您正苦于以下问题:C# RangeVariable类的具体用法?C# RangeVariable怎么用?C# RangeVariable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RangeVariable类属于Mono.CSharp.Linq命名空间,在下文中一共展示了RangeVariable类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: RangeAnonymousTypeParameter
public RangeAnonymousTypeParameter (Expression initializer, RangeVariable parameter)
: base (initializer, parameter.Name, parameter.Location)
{
}
开发者ID:alisci01,项目名称:mono,代码行数:4,代码来源:linq.cs
示例2: case_980
void case_980()
#line 6621 "cs-parser.jay"
{
current_block.AddStatement (new ContextualReturn ((Expression) yyVals[-1+yyTop]));
current_block.SetEndLocation (lexer.Location);
var outer_selector = linq_clause_blocks.Pop ();
var block = linq_clause_blocks.Pop ();
var lt = (LocatedToken) yyVals[-10+yyTop];
var sn = new Linq.RangeVariable (lt.Value, lt.Location);
Linq.RangeVariable into;
if (yyVals[0+yyTop] == null) {
into = sn;
yyVal = new Linq.Join (block, sn, (Expression)yyVals[-7+yyTop], outer_selector, (Linq.QueryBlock) current_block, GetLocation (yyVals[-11+yyTop]));
lbag.AddLocation (yyVal, GetLocation (yyVals[-9+yyTop]), GetLocation (yyVals[-6+yyTop]), GetLocation (yyVals[-3+yyTop]));
} else {
/**/
/* Set equals right side parent to beginning of linq query, it is not accessible therefore cannot cause name collisions*/
/**/
var parent = block.Parent;
while (parent is Linq.QueryBlock) {
parent = parent.Parent;
}
current_block.Parent = parent;
((Linq.QueryBlock)current_block).AddRangeVariable (sn);
lt = (LocatedToken) yyVals[0+yyTop];
into = new Linq.RangeVariable (lt.Value, lt.Location);
yyVal = new Linq.GroupJoin (block, sn, (Expression)yyVals[-7+yyTop], outer_selector, (Linq.QueryBlock) current_block, into, GetLocation (yyVals[-11+yyTop]));
lbag.AddLocation (yyVal, GetLocation (yyVals[-9+yyTop]), GetLocation (yyVals[-6+yyTop]), GetLocation (yyVals[-3+yyTop]), opt_intoStack.Pop ());
}
current_block = block.Parent;
((Linq.QueryBlock)current_block).AddRangeVariable (into);
}
void case_981()
#line 6659 "cs-parser.jay"
{
if (linq_clause_blocks == null)
linq_clause_blocks = new Stack<Linq.QueryBlock> ();
current_block = new Linq.QueryBlock (current_block, lexer.Location);
linq_clause_blocks.Push ((Linq.QueryBlock) current_block);
}
void case_982()
#line 6667 "cs-parser.jay"
{
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
current_block = new Linq.QueryBlock (current_block, lexer.Location);
linq_clause_blocks.Push ((Linq.QueryBlock) current_block);
}
void case_983()
#line 6675 "cs-parser.jay"
{
current_block.AddStatement (new ContextualReturn ((Expression) yyVals[-1+yyTop]));
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
current_block = new Linq.QueryBlock (current_block, lexer.Location);
}
void case_984()
#line 6683 "cs-parser.jay"
{
current_block.AddStatement (new ContextualReturn ((Expression) yyVals[-1+yyTop]));
current_block.SetEndLocation (lexer.Location);
var outer_selector = linq_clause_blocks.Pop ();
var block = linq_clause_blocks.Pop ();
var lt = (LocatedToken) yyVals[-10+yyTop];
var sn = new Linq.RangeVariable (lt.Value, lt.Location);
Linq.RangeVariable into;
if (yyVals[0+yyTop] == null) {
into = sn;
yyVal = new Linq.Join (block, sn, (Expression)yyVals[-7+yyTop], outer_selector, (Linq.QueryBlock) current_block, GetLocation (yyVals[-12+yyTop])) {
IdentifierType = (FullNamedExpression)yyVals[-11+yyTop]
};
lbag.AddLocation (yyVal, GetLocation (yyVals[-10+yyTop]), GetLocation (yyVals[-7+yyTop]), GetLocation (yyVals[-4+yyTop]));
} else {
/**/
/* Set equals right side parent to beginning of linq query, it is not accessible therefore cannot cause name collisions*/
/**/
var parent = block.Parent;
while (parent is Linq.QueryBlock) {
parent = parent.Parent;
}
current_block.Parent = parent;
((Linq.QueryBlock)current_block).AddRangeVariable (sn);
//.........这里部分代码省略.........
开发者ID:segaman,项目名称:NRefactory,代码行数:101,代码来源:cs-parser.cs
示例3: case_1003
void case_1003()
#line 6836 "cs-parser.jay"
{
var current_block = linq_clause_blocks.Pop ();
var lt = (LocatedToken) yyVals[-2+yyTop];
var rv = new Linq.RangeVariable (lt.Value, lt.Location);
yyVal = new Linq.QueryStartClause ((Linq.QueryBlock)current_block, null, rv, GetLocation (yyVals[-3+yyTop])) {
next = (Linq.AQueryClause)yyVals[0+yyTop]
};
}
开发者ID:segaman,项目名称:NRefactory,代码行数:10,代码来源:cs-parser.cs
示例4: TransparentParameter
public TransparentParameter (Parameter parent, RangeVariable identifier)
: base (ParameterNamePrefix + Counter++, identifier.Location)
{
Parent = parent;
Identifier = identifier.Name;
}
开发者ID:alisci01,项目名称:mono,代码行数:6,代码来源:linq.cs
示例5: case_867
void case_867()
#line 5565 "C:\Projects\Junk\mono\mcs\class\Mono.CSharp\..\..\mcs\cs-parser.jay"
{
var lt = (Tokenizer.LocatedToken) yyVals[-3+yyTop];
var sn = new Linq.RangeVariable (lt.Value, lt.Location);
yyVal = new Linq.SelectMany ((Linq.QueryBlock)current_block, sn, (Expression)yyVals[0+yyTop], GetLocation (yyVals[-5+yyTop])) {
IdentifierType = (FullNamedExpression)yyVals[-4+yyTop]
};
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
((Linq.QueryBlock)current_block).AddRangeVariable (sn);
}
开发者ID:RainsSoft,项目名称:MonoCompilerAsAService,代码行数:15,代码来源:cs-parser.cs
示例6: QueryStartClause
public QueryStartClause (QueryBlock block, Expression expr, RangeVariable identifier, Location loc)
: base (block, identifier, expr, loc)
{
block.AddRangeVariable (identifier);
}
开发者ID:alisci01,项目名称:mono,代码行数:5,代码来源:linq.cs
示例7: GroupJoin
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;
}
开发者ID:alisci01,项目名称:mono,代码行数:6,代码来源:linq.cs
示例8: case_861
void case_861()
#line 5538 "cs-parser.jay"
{
current_block = new Linq.QueryBlock (compiler, current_block, lexer.Location);
var lt = (Tokenizer.LocatedToken) yyVals[-2+yyTop];
var rv = new Linq.RangeVariable (lt.Value, lt.Location);
yyVal = new Linq.QueryExpression (
new Linq.QueryStartClause ((Linq.QueryBlock)current_block, (Expression)yyVals[0+yyTop], rv, GetLocation (yyVals[-4+yyTop])) {
IdentifierType = (FullNamedExpression)yyVals[-3+yyTop]
}
);
}
开发者ID:Ein,项目名称:monodevelop,代码行数:13,代码来源:cs-parser.cs
示例9: case_863
void case_863()
#line 5557 "cs-parser.jay"
{
var lt = (Tokenizer.LocatedToken) yyVals[-3+yyTop];
var sn = new Linq.RangeVariable (lt.Value, lt.Location);
yyVal = new Linq.SelectMany ((Linq.QueryBlock)current_block, sn, (Expression)yyVals[0+yyTop], GetLocation (yyVals[-4+yyTop]));
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
((Linq.QueryBlock)current_block).AddRangeVariable (sn);
}
开发者ID:Ein,项目名称:monodevelop,代码行数:12,代码来源:cs-parser.cs
示例10: yyparse
//.........这里部分代码省略.........
Linq.AQueryClause from = yyVals[-1+yyTop] as Linq.AQueryClause;
from.Tail.Next = (Linq.AQueryClause)yyVals[0+yyTop];
yyVal = from;
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
}
break;
case 888:
#line 5966 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
lexer.query_parsing = false;
yyVal = yyVals[-1+yyTop];
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
}
break;
case 889:
#line 5973 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
yyVal = yyVals[-1+yyTop];
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
}
break;
case 890:
#line 5982 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
current_block = new Linq.QueryBlock (current_block, lexer.Location);
var lt = (Tokenizer.LocatedToken) yyVals[-2+yyTop];
var rv = new Linq.RangeVariable (lt.Value, lt.Location);
yyVal = new Linq.QueryExpression (new Linq.QueryStartClause ((Linq.QueryBlock)current_block, (Expression)yyVals[0+yyTop], rv, GetLocation (yyVals[-3+yyTop])));
}
break;
case 891:
#line 5990 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
current_block = new Linq.QueryBlock (current_block, lexer.Location);
var lt = (Tokenizer.LocatedToken) yyVals[-2+yyTop];
var rv = new Linq.RangeVariable (lt.Value, lt.Location);
yyVal = new Linq.QueryExpression (
new Linq.QueryStartClause ((Linq.QueryBlock)current_block, (Expression)yyVals[0+yyTop], rv, GetLocation (yyVals[-4+yyTop])) {
IdentifierType = (FullNamedExpression)yyVals[-3+yyTop]
}
);
}
break;
case 892:
#line 6005 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
current_block = new Linq.QueryBlock (current_block, lexer.Location);
var lt = (Tokenizer.LocatedToken) yyVals[-2+yyTop];
var rv = new Linq.RangeVariable (lt.Value, lt.Location);
yyVal = new Linq.QueryExpression (new Linq.QueryStartClause ((Linq.QueryBlock)current_block, (Expression)yyVals[0+yyTop], rv, GetLocation (yyVals[-3+yyTop])));
}
break;
case 893:
#line 6013 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
current_block = new Linq.QueryBlock (current_block, lexer.Location);
开发者ID:runefs,项目名称:Marvin,代码行数:66,代码来源:cs-parser.cs
示例11: case_864
void case_864()
#line 5560 "cs-parser.jay"
{
current_block = new Linq.QueryBlock (current_block, lexer.Location);
var lt = (Tokenizer.LocatedToken) yyVals[-2+yyTop];
var rv = new Linq.RangeVariable (lt.Value, lt.Location);
yyVal = new Linq.QueryExpression (new Linq.QueryStartClause ((Linq.QueryBlock)current_block, (Expression)yyVals[0+yyTop], rv, GetLocation (yyVals[-3+yyTop])));
}
开发者ID:okrmartin,项目名称:monodevelop,代码行数:9,代码来源:cs-parser.cs
示例12: case_915
void case_915()
#line 5925 "C:\Projects\Junk\mono\mcs\class\Mono.CSharp\..\..\mcs\cs-parser.jay"
{
var current_block = linq_clause_blocks.Pop ();
var lt = (Tokenizer.LocatedToken) yyVals[-2+yyTop];
var rv = new Linq.RangeVariable (lt.Value, lt.Location);
yyVal = new Linq.QueryStartClause ((Linq.QueryBlock)current_block, null, rv, GetLocation (yyVals[-3+yyTop])) {
next = (Linq.AQueryClause)yyVals[0+yyTop]
};
}
开发者ID:RainsSoft,项目名称:MonoCompilerAsAService,代码行数:10,代码来源:cs-parser.cs
示例13: case_892
void case_892()
#line 5720 "C:\Projects\Junk\mono\mcs\class\Mono.CSharp\..\..\mcs\cs-parser.jay"
{
current_block.AddStatement (new ContextualReturn ((Expression) yyVals[-1+yyTop]));
current_block.SetEndLocation (lexer.Location);
var outer_selector = linq_clause_blocks.Pop ();
var block = linq_clause_blocks.Pop ();
var lt = (Tokenizer.LocatedToken) yyVals[-10+yyTop];
var sn = new Linq.RangeVariable (lt.Value, lt.Location);
Linq.RangeVariable into;
if (yyVals[0+yyTop] == null) {
into = sn;
yyVal = new Linq.Join (block, sn, (Expression)yyVals[-7+yyTop], outer_selector, (Linq.QueryBlock) current_block, GetLocation (yyVals[-11+yyTop]));
} else {
/**/
/* Set equals right side parent to beginning of linq query, it is not accessible therefore cannot cause name collisions*/
/**/
var parent = block.Parent;
while (parent is Linq.QueryBlock) {
parent = parent.Parent;
}
current_block.Parent = parent;
((Linq.QueryBlock)current_block).AddRangeVariable (sn);
lt = (Tokenizer.LocatedToken) yyVals[0+yyTop];
into = new Linq.RangeVariable (lt.Value, lt.Location);
yyVal = new Linq.GroupJoin (block, sn, (Expression)yyVals[-7+yyTop], outer_selector, (Linq.QueryBlock) current_block, into, GetLocation (yyVals[-11+yyTop]));
}
current_block = block.Parent;
((Linq.QueryBlock)current_block).AddRangeVariable (into);
}
void case_893()
#line 5756 "C:\Projects\Junk\mono\mcs\class\Mono.CSharp\..\..\mcs\cs-parser.jay"
{
if (linq_clause_blocks == null)
linq_clause_blocks = new Stack<Linq.QueryBlock> ();
current_block = new Linq.QueryBlock (current_block, lexer.Location);
linq_clause_blocks.Push ((Linq.QueryBlock) current_block);
}
void case_894()
#line 5764 "C:\Projects\Junk\mono\mcs\class\Mono.CSharp\..\..\mcs\cs-parser.jay"
{
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
current_block = new Linq.QueryBlock (current_block, lexer.Location);
linq_clause_blocks.Push ((Linq.QueryBlock) current_block);
}
void case_895()
#line 5772 "C:\Projects\Junk\mono\mcs\class\Mono.CSharp\..\..\mcs\cs-parser.jay"
{
current_block.AddStatement (new ContextualReturn ((Expression) yyVals[-1+yyTop]));
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
current_block = new Linq.QueryBlock (current_block, lexer.Location);
}
void case_896()
#line 5780 "C:\Projects\Junk\mono\mcs\class\Mono.CSharp\..\..\mcs\cs-parser.jay"
{
current_block.AddStatement (new ContextualReturn ((Expression) yyVals[-1+yyTop]));
current_block.SetEndLocation (lexer.Location);
var outer_selector = linq_clause_blocks.Pop ();
var block = linq_clause_blocks.Pop ();
var lt = (Tokenizer.LocatedToken) yyVals[-10+yyTop];
var sn = new Linq.RangeVariable (lt.Value, lt.Location);
Linq.RangeVariable into;
if (yyVals[0+yyTop] == null) {
into = sn;
yyVal = new Linq.Join (block, sn, (Expression)yyVals[-7+yyTop], outer_selector, (Linq.QueryBlock) current_block, GetLocation (yyVals[-12+yyTop])) {
IdentifierType = (FullNamedExpression)yyVals[-11+yyTop]
};
} else {
/**/
/* Set equals right side parent to beginning of linq query, it is not accessible therefore cannot cause name collisions*/
/**/
var parent = block.Parent;
while (parent is Linq.QueryBlock) {
parent = parent.Parent;
}
current_block.Parent = parent;
((Linq.QueryBlock)current_block).AddRangeVariable (sn);
lt = (Tokenizer.LocatedToken) yyVals[0+yyTop];
into = new Linq.RangeVariable (lt.Value, lt.Location); /* TODO:*/
//.........这里部分代码省略.........
开发者ID:RainsSoft,项目名称:MonoCompilerAsAService,代码行数:101,代码来源:cs-parser.cs
示例14: case_886
void case_886()
#line 5668 "C:\Projects\Junk\mono\mcs\class\Mono.CSharp\..\..\mcs\cs-parser.jay"
{
var lt = (Tokenizer.LocatedToken) yyVals[-3+yyTop];
var sn = new Linq.RangeVariable (lt.Value, lt.Location);
yyVal = new Linq.Let ((Linq.QueryBlock) current_block, sn, (Expression)yyVals[0+yyTop], GetLocation (yyVals[-4+yyTop]));
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
((Linq.QueryBlock)current_block).AddRangeVariable (sn);
}
开发者ID:RainsSoft,项目名称:MonoCompilerAsAService,代码行数:12,代码来源:cs-parser.cs
示例15: ARangeVariableQueryClause
protected ARangeVariableQueryClause (QueryBlock block, RangeVariable identifier, Expression expr, Location loc)
: base (block, expr, loc)
{
this.identifier = identifier;
}
开发者ID:alisci01,项目名称:mono,代码行数:5,代码来源:linq.cs
示例16: case_949
void case_949()
#line 6390 "cs-parser.jay"
{
current_block = new Linq.QueryBlock (current_block, lexer.Location);
var lt = (LocatedToken) yyVals[-2+yyTop];
var rv = new Linq.RangeVariable (lt.Value, lt.Location);
var clause = new Linq.QueryStartClause ((Linq.QueryBlock)current_block, (Expression)yyVals[0+yyTop], rv, GetLocation (yyVals[-3+yyTop]));
lbag.AddLocation (clause, GetLocation (yyVals[-1+yyTop]));
yyVal = new Linq.QueryExpression (clause);
}
开发者ID:lorry-lee,项目名称:vimlorry,代码行数:11,代码来源:cs-parser.cs
示例17: CreateRangeVariableType
protected static Expression CreateRangeVariableType (ResolveContext rc, Parameter parameter, RangeVariable name, Expression init)
{
var args = new List<AnonymousTypeParameter> (2);
//
// The first argument is the reference to the parameter
//
args.Add (new AnonymousTypeParameter (new RangeParameterReference (parameter), parameter.Name, parameter.Location));
//
// The second argument is the linq expression
//
args.Add (new RangeAnonymousTypeParameter (init, name));
//
// Create unique anonymous type
//
return new NewAnonymousType (args, rc.MemberContext.CurrentMemberDefinition.Parent, name.Location);
}
开发者ID:alisci01,项目名称:mono,代码行数:19,代码来源:linq.cs
示例18: case_949
void case_949()
#line 6401 "cs-parser.jay"
{
current_block = new Linq.QueryBlock (current_block, lexer.Location);
var lt = (LocatedToken) yyVals[-2+yyTop];
var rv = new Linq.RangeVariable (lt.Value, lt.Location);
var start = new Linq.QueryStartClause ((Linq.QueryBlock)current_block, (Expression)yyVals[0+yyTop], rv, GetLocation (yyVals[-4+yyTop])) {
IdentifierType = (FullNamedExpression)yyVals[-3+yyTop]
};
lbag.AddLocation (start, GetLocation (yyVals[-1+yyTop]));
yyVal = new Linq.QueryExpression (start);
}
开发者ID:segaman,项目名称:NRefactory,代码行数:13,代码来源:cs-parser.cs
示例19: Join
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;
}
开发者ID:alisci01,项目名称:mono,代码行数:6,代码来源:linq.cs
示例20: case_953
void case_953()
#line 6436 "cs-parser.jay"
{
var lt = (LocatedToken) yyVals[-3+yyTop];
var sn = new Linq.RangeVariable (lt.Value, lt.Location);
yyVal = new Linq.SelectMany ((Linq.QueryBlock)current_block, sn, (Expression)yyVals[0+yyTop], GetLocation (yyVals[-5+yyTop])) {
IdentifierType = (FullNamedExpression)yyVals[-4+yyTop]
};
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
((Linq.QueryBlock)current_block).AddRangeVariable (sn);
lbag.AddLocation (yyVal, GetLocation (yyVals[-2+yyTop]));
}
开发者ID:segaman,项目名称:NRefactory,代码行数:17,代码来源:cs-parser.cs
注:本文中的Mono.CSharp.Linq.RangeVariable类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论