Example #1
0
 internal virtual void InheritedContextFromParent(GremlinToSqlContext parentContext)
 {
     if (this is GremlinParentContextOp)
     {
         GremlinParentContextOp rootAsContextOp = this as GremlinParentContextOp;
         rootAsContextOp.InheritedContext = parentContext.Duplicate();
     }
 }
        internal virtual void InheritedVariableFromParent(GremlinToSqlContext parentContext)
        {
            GremlinParentContextOp rootAsContextOp = this as GremlinParentContextOp;

            if (rootAsContextOp != null)
            {
                rootAsContextOp.InheritedPivotVariable = parentContext.PivotVariable;
                rootAsContextOp.ParentContext          = parentContext;
            }
        }
Example #3
0
 internal virtual void InheritedVariableFromParent(GremlinToSqlContext parentContext)
 {
     if (this is GremlinParentContextOp)
     {
         GremlinParentContextOp rootAsContextOp = this as GremlinParentContextOp;
         rootAsContextOp.InheritedPivotVariable = parentContext.PivotVariable;
         rootAsContextOp.InheritedPathList      = new List <GremlinMatchPath>(parentContext.PathList);
         rootAsContextOp.ParentContext          = parentContext;
     }
 }
Example #4
0
 public GremlinEmitParentContextOp(GremlinParentContextOp pt)
 {
     this.InheritedPivotVariable = pt.InheritedPivotVariable;
     this.InheritedContext       = pt.InheritedContext;
     this.ParentContext          = pt.ParentContext;
 }