internal void DefineCapturedVariable(int scope_id, string name, string captured_name,
                                             CapturedVariable.CapturedKind kind)
        {
            if (reader != null)
            {
                throw new InvalidOperationException();
            }

            AnonymousScopeEntry scope = anonymous_scopes [scope_id];

            scope.AddCapturedVariable(name, captured_name, kind);
        }
Example #2
0
 internal void AddCapturedVariable(string name, string captured_name,
                                   CapturedVariable.CapturedKind kind)
 {
     captured_vars.Add(new CapturedVariable(name, captured_name, kind));
 }
 internal CapturedVariable(MyBinaryReader reader)
 {
     this.Name         = reader.ReadString();
     this.CapturedName = reader.ReadString();
     this.Kind         = (CapturedVariable.CapturedKind)reader.ReadByte();
 }
 public CapturedVariable(string name, string captured_name, CapturedVariable.CapturedKind kind)
 {
     this.Name         = name;
     this.CapturedName = captured_name;
     this.Kind         = kind;
 }
Example #5
0
		internal CapturedVariable(MyBinaryReader reader)
		{
			this.Name = reader.ReadString();
			this.CapturedName = reader.ReadString();
			this.Kind = (CapturedVariable.CapturedKind)reader.ReadByte();
		}
Example #6
0
		public CapturedVariable(string name, string captured_name, CapturedVariable.CapturedKind kind)
		{
			this.Name = name;
			this.CapturedName = captured_name;
			this.Kind = kind;
		}