internal List <GremlinVariable> GetGlobalPathStepList()
        {
            List <GremlinVariable> steps = ParentContext?.GetGlobalPathStepList() ?? new List <GremlinVariable>();

            foreach (var step in StepList)
            {
                step.PopulateLocalPath();
            }
            steps.AddRange(StepList);
            return(steps);
        }