ScriptLoadingContext.cs 758 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using MoonSharp.Interpreter.Debugging;
  6. using MoonSharp.Interpreter.Tree;
  7. namespace MoonSharp.Interpreter.Execution
  8. {
  9. class ScriptLoadingContext
  10. {
  11. public Script Script { get; private set; }
  12. public BuildTimeScope Scope { get; set; }
  13. public SourceCode Source { get; set; }
  14. public bool Anonymous { get; set; }
  15. public bool IsDynamicExpression { get; set; }
  16. public Lexer Lexer { get; set; }
  17. public ScriptLoadingContext(Script s)
  18. {
  19. Script = s;
  20. }
  21. public void EnterLevel()
  22. {
  23. //if (++ls.L.nCcalls > LUAI_MAXCCALLS)
  24. // LuaXLexError(ls, "chunk has too many syntax levels", 0);
  25. }
  26. public void LeaveLevel()
  27. {
  28. //ls.L.nCcalls--;
  29. }
  30. }
  31. }