57 instantiations of TreeNode
System.Data.Entity (57)
System\Data\Common\CommandTrees\DbSetClause.cs (3)
82
TreeNode node = new
TreeNode
("DbSetClause");
85
node.Children.Add(new
TreeNode
("Property", this.Property.Accept(visitor)));
89
node.Children.Add(new
TreeNode
("Value", this.Value.Accept(visitor)));
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (54)
52
targetNode = new
TreeNode
("Target");
62
predicateNode = new
TreeNode
("Predicate");
65
return this.Print(new
TreeNode
(
76
TreeNode funcNode = new
TreeNode
("EdmFunction");
82
TreeNode typeNode = new
TreeNode
("ResultType");
88
return this.Print(new
TreeNode
("DbFunctionCommandTree", CreateParametersNode(tree), funcNode, typeNode));
102
targetNode = new
TreeNode
("Target");
105
TreeNode clausesNode = new
TreeNode
("SetClauses");
117
returningNode = new
TreeNode
("Returning", _visitor.VisitExpression(tree.Returning));
121
returningNode = new
TreeNode
("Returning");
124
return this.Print(new
TreeNode
(
144
targetNode = new
TreeNode
("Target");
147
TreeNode clausesNode = new
TreeNode
("SetClauses");
159
predicateNode = new
TreeNode
("Predicate", _visitor.VisitExpression(tree.Predicate));
163
predicateNode = new
TreeNode
("Predicate");
169
returningNode = new
TreeNode
("Returning", _visitor.VisitExpression(tree.Returning));
173
returningNode = new
TreeNode
("Returning");
176
return this.Print(new
TreeNode
(
189
TreeNode queryNode = new
TreeNode
("Query");
196
return this.Print(new
TreeNode
("DbQueryCommandTree", CreateParametersNode(tree), queryNode));
201
TreeNode retNode = new
TreeNode
("Parameters");
204
TreeNode paramNode = new
TreeNode
(paramInfo.Key);
249
return new
TreeNode
(name, expr.Accept<TreeNode>(this));
259
TreeNode funcInfo = new
TreeNode
();
273
return new
TreeNode
(Enum.GetName(typeof(DbExpressionKind), expr.ExpressionKind));
377
TreeNode paramNode = new
TreeNode
(paramInfo[idx]);
389
node.Children.Add(new
TreeNode
("Arguments", VisitParams(paramNames, args)));
395
TreeNode retInfo = new
TreeNode
(label);
412
return new
TreeNode
(propName, bindingInfos);
418
TreeNode retInfo = new
TreeNode
();
426
TreeNode retInfo = new
TreeNode
(name);
438
TreeNode nullOp = new
TreeNode
("");
440
nullOp.Children.Add(new
TreeNode
(name));
484
TreeNode retInfo = new
TreeNode
();
512
return new
TreeNode
("null");
517
TreeNode retInfo = new
TreeNode
();
524
TreeNode retInfo = new
TreeNode
();
537
TreeNode lambdaInfo = new
TreeNode
();
581
TreeNode retInfo = new
TreeNode
(".");
593
retInfo.Children.Add(new
TreeNode
("Instance", inst));
692
retInfo = new
TreeNode
(op);
712
TreeNode retInfo = new
TreeNode
();
730
TreeNode retInfo = new
TreeNode
(e.ExpressionKind == DbExpressionKind.OfTypeOnly ? "OfTypeOnly" : "OfType");
739
TreeNode retInfo = new
TreeNode
("Case");
775
TreeNode references = new
TreeNode
("RelatedEntityReferences");
793
TreeNode retNode = new
TreeNode
("Ref");
798
TreeNode setNode = new
TreeNode
("EntitySet : ");
811
TreeNode rel = new
TreeNode
("Relationship");
819
TreeNode nav = new
TreeNode
();
920
TreeNode aggInfo = new
TreeNode
("Aggregate : '");
930
funcInfo = new
TreeNode
("Distinct", funcInfo);
949
retInfo.Children.Add(new
TreeNode
("Keys", keys));
954
retInfo.Children.Add(new
TreeNode
("Aggregates", aggs));
962
TreeNode keyInfo = new
TreeNode
("SortOrder");
154 references to TreeNode
System.Data.Entity (154)
System\Data\Common\CommandTrees\DbModificationClause.cs (2)
45
internal abstract
TreeNode
Print(DbExpressionVisitor<
TreeNode
> visitor);
System\Data\Common\CommandTrees\DbSetClause.cs (3)
80
internal override
TreeNode
Print(DbExpressionVisitor<
TreeNode
> visitor)
82
TreeNode
node = new TreeNode("DbSetClause");
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (134)
45
TreeNode
targetNode;
55
TreeNode
predicateNode;
76
TreeNode
funcNode = new TreeNode("EdmFunction");
82
TreeNode
typeNode = new TreeNode("ResultType");
95
TreeNode
targetNode = null;
105
TreeNode
clausesNode = new TreeNode("SetClauses");
114
TreeNode
returningNode = null;
137
TreeNode
targetNode = null;
147
TreeNode
clausesNode = new TreeNode("SetClauses");
156
TreeNode
predicateNode;
166
TreeNode
returningNode;
189
TreeNode
queryNode = new TreeNode("Query");
199
private static
TreeNode
CreateParametersNode(DbCommandTree tree)
201
TreeNode
retNode = new TreeNode("Parameters");
204
TreeNode
paramNode = new TreeNode(paramInfo.Key);
212
private class PrinterVisitor : DbExpressionVisitor<
TreeNode
>
242
internal
TreeNode
VisitExpression(DbExpression expr)
244
return expr.Accept<
TreeNode
>(this);
247
internal
TreeNode
VisitExpression(string name, DbExpression expr)
249
return new TreeNode(name, expr.Accept<
TreeNode
>(this));
252
internal
TreeNode
VisitBinding(string propName, DbExpressionBinding binding)
257
internal
TreeNode
VisitFunction(EdmFunction func, IList<DbExpression> args)
259
TreeNode
funcInfo = new TreeNode();
271
private static
TreeNode
NodeFromExpression(DbExpression expr)
276
private static void AppendParameters(
TreeNode
node, IEnumerable<KeyValuePair<string, TypeUsage>> paramInfos)
294
internal static void AppendTypeSpecifier(
TreeNode
node, TypeUsage type)
300
internal static void AppendType(
TreeNode
node, TypeUsage type)
372
private List<
TreeNode
> VisitParams(IList<string> paramInfo, IList<DbExpression> args)
374
List<
TreeNode
> retInfo = new List<
TreeNode
>();
377
TreeNode
paramNode = new TreeNode(paramInfo[idx]);
385
private void AppendArguments(
TreeNode
node, IList<string> paramNames, IList<DbExpression> args)
393
private
TreeNode
VisitWithLabel(string label, string name, DbExpression def)
395
TreeNode
retInfo = new TreeNode(label);
404
private
TreeNode
VisitBindingList(string propName, IList<DbExpressionBinding> bindings)
406
List<
TreeNode
> bindingInfos = new List<
TreeNode
>();
415
private
TreeNode
VisitGroupBinding(DbGroupExpressionBinding groupBinding)
417
TreeNode
inputInfo = this.VisitExpression(groupBinding.Expression);
418
TreeNode
retInfo = new TreeNode();
424
private
TreeNode
Visit(string name, params DbExpression[] exprs)
426
TreeNode
retInfo = new TreeNode(name);
434
private
TreeNode
VisitInfix(DbExpression root, DbExpression left, string name, DbExpression right)
438
TreeNode
nullOp = new TreeNode("");
451
private
TreeNode
VisitUnary(DbUnaryExpression expr)
456
private
TreeNode
VisitUnary(DbUnaryExpression expr, bool appendType)
458
TreeNode
retInfo = NodeFromExpression(expr);
467
private
TreeNode
VisitBinary(DbBinaryExpression expr)
469
TreeNode
retInfo = NodeFromExpression(expr);
477
public override
TreeNode
Visit(DbExpression e)
482
public override
TreeNode
Visit(DbConstantExpression e)
484
TreeNode
retInfo = new TreeNode();
510
public override
TreeNode
Visit(DbNullExpression e)
515
public override
TreeNode
Visit(DbVariableReferenceExpression e)
517
TreeNode
retInfo = new TreeNode();
522
public override
TreeNode
Visit(DbParameterReferenceExpression e)
524
TreeNode
retInfo = new TreeNode();
529
public override
TreeNode
Visit(DbFunctionExpression e)
531
TreeNode
funcInfo = VisitFunction(e.Function, e.Arguments);
535
public override
TreeNode
Visit(DbLambdaExpression expression)
537
TreeNode
lambdaInfo = new TreeNode();
566
public override
TreeNode
Visit(DbPropertyExpression e)
568
TreeNode
inst = null;
581
TreeNode
retInfo = new TreeNode(".");
599
public override
TreeNode
Visit(DbComparisonExpression e)
604
public override
TreeNode
Visit(DbLikeExpression e)
609
public override
TreeNode
Visit(DbLimitExpression e)
614
public override
TreeNode
Visit(DbIsNullExpression e)
619
public override
TreeNode
Visit(DbArithmeticExpression e)
631
public override
TreeNode
Visit(DbAndExpression e)
636
public override
TreeNode
Visit(DbOrExpression e)
641
public override
TreeNode
Visit(DbNotExpression e)
646
public override
TreeNode
Visit(DbDistinctExpression e)
651
public override
TreeNode
Visit(DbElementExpression e)
656
public override
TreeNode
Visit(DbIsEmptyExpression e)
661
public override
TreeNode
Visit(DbUnionAllExpression e)
666
public override
TreeNode
Visit(DbIntersectExpression e)
671
public override
TreeNode
Visit(DbExceptExpression e)
676
private
TreeNode
VisitCastOrTreat(string op, DbUnaryExpression e)
678
TreeNode
retInfo = null;
679
TreeNode
argInfo = this.VisitExpression(e.Argument);
700
public override
TreeNode
Visit(DbTreatExpression e)
705
public override
TreeNode
Visit(DbCastExpression e)
710
public override
TreeNode
Visit(DbIsOfExpression e)
712
TreeNode
retInfo = new TreeNode();
728
public override
TreeNode
Visit(DbOfTypeExpression e)
730
TreeNode
retInfo = new TreeNode(e.ExpressionKind == DbExpressionKind.OfTypeOnly ? "OfTypeOnly" : "OfType");
737
public override
TreeNode
Visit(DbCaseExpression e)
739
TreeNode
retInfo = new TreeNode("Case");
751
public override
TreeNode
Visit(DbNewInstanceExpression e)
753
TreeNode
retInfo = NodeFromExpression(e);
775
TreeNode
references = new TreeNode("RelatedEntityReferences");
778
TreeNode
refNode = CreateNavigationNode(relatedRef.SourceEnd, relatedRef.TargetEnd);
791
public override
TreeNode
Visit(DbRefExpression e)
793
TreeNode
retNode = new TreeNode("Ref");
798
TreeNode
setNode = new TreeNode("EntitySet : ");
809
private
TreeNode
CreateRelationshipNode(RelationshipType relType)
811
TreeNode
rel = new TreeNode("Relationship");
817
private
TreeNode
CreateNavigationNode(RelationshipEndMember fromEnd, RelationshipEndMember toEnd)
819
TreeNode
nav = new TreeNode();
827
public override
TreeNode
Visit(DbRelationshipNavigationExpression e)
829
TreeNode
retInfo = NodeFromExpression(e);
837
public override
TreeNode
Visit(DbDerefExpression e)
842
public override
TreeNode
Visit(DbRefKeyExpression e)
847
public override
TreeNode
Visit(DbEntityRefExpression e)
852
public override
TreeNode
Visit(DbScanExpression e)
854
TreeNode
retInfo = NodeFromExpression(e);
862
public override
TreeNode
Visit(DbFilterExpression e)
864
TreeNode
retInfo = NodeFromExpression(e);
870
public override
TreeNode
Visit(DbProjectExpression e)
872
TreeNode
retInfo = NodeFromExpression(e);
878
public override
TreeNode
Visit(DbCrossJoinExpression e)
880
TreeNode
retInfo = NodeFromExpression(e);
885
public override
TreeNode
Visit(DbJoinExpression e)
887
TreeNode
retInfo = NodeFromExpression(e);
895
public override
TreeNode
Visit(DbApplyExpression e)
897
TreeNode
retInfo = NodeFromExpression(e);
904
public override
TreeNode
Visit(DbGroupByExpression e)
906
List<
TreeNode
> keys = new List<
TreeNode
>();
907
List<
TreeNode
> aggs = new List<
TreeNode
>();
920
TreeNode
aggInfo = new TreeNode("Aggregate : '");
927
TreeNode
funcInfo = this.VisitFunction(funcAgg.Function, funcAgg.Arguments);
945
TreeNode
retInfo = NodeFromExpression(e);
960
private
TreeNode
VisitSortOrder(IList<DbSortClause> sortOrder)
962
TreeNode
keyInfo = new TreeNode("SortOrder");
965
TreeNode
key = this.Visit((clause.Ascending ? "Asc" : "Desc"), clause.Expression);
978
public override
TreeNode
Visit(DbSkipExpression e)
980
TreeNode
retInfo = NodeFromExpression(e);
987
public override
TreeNode
Visit(DbSortExpression e)
989
TreeNode
retInfo = NodeFromExpression(e);
996
public override
TreeNode
Visit(DbQuantifierExpression e)
998
TreeNode
retInfo = NodeFromExpression(e);
System\Data\Common\Utils\TreePrinter.cs (15)
25
private List<
TreeNode
> _children = new List<
TreeNode
>();
39
internal TreeNode(string text, params
TreeNode
[] children)
57
internal TreeNode(string text, List<
TreeNode
> children)
76
internal IList<
TreeNode
> Children { get { return _children; } }
91
private List<
TreeNode
> _scopes = new List<
TreeNode
>();
105
internal virtual string Print(
TreeNode
node)
127
internal virtual void PreProcess(
TreeNode
node) { }
135
internal virtual void AfterAppend(
TreeNode
node, StringBuilder text) { }
144
internal virtual void BeforeAppend(
TreeNode
node, StringBuilder text) { }
151
internal virtual void PrintNode(StringBuilder text,
TreeNode
node)
167
internal virtual void PrintChildren(StringBuilder text,
TreeNode
node)
171
foreach (
TreeNode
childNode in node.Children)
190
TreeNode
parentScope = _scopes[scopeIdx];