The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
LValueError.cs
Go to the documentation of this file.
1 // -------------------------------------------------------------------------- //
3 // Project rROTOR //
4 // -------------------------------------------------------------------------- //
5 // File: LValueError.cs //
6 // Authors: Cristina Gonzalez Muņoz - cristi.gm@gmail.com //
7 // Francisco Ortin - francisco.ortin@gmail.com //
8 // Description: //
9 // Represents a error produced when the expression is not a lvalue. //
10 // -------------------------------------------------------------------------- //
11 // Create date: 13-02-2007 //
12 // Modification date: 06-04-2007 //
14 
15 using System;
16 using System.Collections.Generic;
17 using System.Text;
18 
19 namespace ErrorManagement
20 {
24  public class LValueError : ErrorAdapter
25  {
26  #region Constructor
27 
34  public LValueError(Location loc) : base(loc)
35  {
36  StringBuilder aux = new StringBuilder();
37  aux.AppendFormat("The left-hand side of an assignment must be a variable, a writable property or a indexer (lvalue required).");
38  this.Description = aux.ToString();
39  }
40 
41  #endregion
42  }
43 }
This class encapsulates a location in a specific file. Implements an Inmutable pattern. So it can be used in any context, that is his internal fields never change.
Definition: Location.cs:24
System.Text.StringBuilder StringBuilder
Definition: CSharpParser.cs:4
LValueError(Location loc)
Constructor of LValueError
Definition: LValueError.cs:34
Represents an adapter of existing features in every error.
Definition: ErrorAdapter.cs:23
Represents a error produced when the expression is not a lvalue.
Definition: LValueError.cs:24