/// <summary> /// Add a traversal source instruction to the bytecode. /// </summary> /// <param name="sourceName">The traversal source method name (e.g. withSack()).</param> /// <param name="args">The traversal source method arguments.</param> public void AddSource(string sourceName, params object[] args) { SourceInstructions.Add(new Instruction(sourceName, FlattenArguments(args))); Bindings.Clear(); }
/// <summary> /// Add a traversal source instruction to the bytecode. /// </summary> /// <param name="sourceName">The traversal source method name (e.g. withSack()).</param> /// <param name="args">The traversal source method arguments.</param> public void AddSource(string sourceName, params object[] args) { SourceInstructions.Add(new Instruction(sourceName, args)); }