PageRenderTime 34ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/Scripting/Parser/Construct/Expressions/List.cs

http://github.com/polyethene/IronAHK
C# | 20 lines | 17 code | 3 blank | 0 comment | 1 complexity | c5c134e2a512443c263ba44a04fc32a3 MD5 | raw file
  1. using System.Collections.Generic;
  2. namespace IronAHK.Scripting
  3. {
  4. partial class Parser
  5. {
  6. List<object> Dissect(List<object> parts, int start, int end)
  7. {
  8. var extracted = new List<object>(end - start);
  9. for (int i = start; i < end; i++)
  10. {
  11. extracted.Add(parts[start]);
  12. parts.RemoveAt(start);
  13. }
  14. return extracted;
  15. }
  16. }
  17. }