The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
ExpressionExpectedError.cs
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
3 // Project rROTOR
4 // --------------------------------------------------------------------------
5 // File: ExpressionExpectedError.cs
6 // Author: Francisco Ortin - francisco.ortin@gmail.com
7 // Description:
8 // Represents a error produced when a return statement requires an
9 // expression but it is not used.
10 // --------------------------------------------------------------------------
11 // Create date: 14-04-2007
12 // Modification date: 14-04-2007
14 
15 using System;
16 using System.Collections.Generic;
17 using System.Text;
18 
19 namespace ErrorManagement {
24  #region Constructor
25 
33  : base(loc) {
34  StringBuilder aux = new StringBuilder();
35  aux.AppendFormat("The return statement of this method requires an expression.");
36  this.Description = aux.ToString();
37  }
38 
39  #endregion
40  }
41 }
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
Represents an adapter of existing features in every error.
Definition: ErrorAdapter.cs:23
ExpressionExpectedError(Location loc)
Constructor of LValueError
Represents a error produced when the expression is not a lvalue.