Private
Public Access
Fixed VisualStudio Suggestions
This commit is contained in:
1 parent
2884bbe8ca
commit
6f4522fbbe
12 files changed
+18
-17
No files matched your search
@@ -24,7 +24,7 @@ namespace Advanced_Software_Engineering {
|
|||||||
/// Gets the command from the result
|
/// Gets the command from the result
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>the command</returns>
|
/// <returns>the command</returns>
|
||||||
public string getCommand() {
|
public string GetCommand() {
|
||||||
return command;
|
return command;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ namespace Advanced_Software_Engineering {
|
|||||||
/// Gets the command parameters
|
/// Gets the command parameters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>command parameters</returns>
|
/// <returns>command parameters</returns>
|
||||||
public string[] getParameters() {
|
public string[] GetParameters() {
|
||||||
return parameters;
|
return parameters;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -107,7 +107,7 @@ namespace Advanced_Software_Engineering.Verbs.Flow {
|
|||||||
/// Checks if the result is initilised (Experimental)
|
/// Checks if the result is initilised (Experimental)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public bool isInitialised() {
|
public bool IsInitialised() {
|
||||||
return init;
|
return init;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ namespace Advanced_Software_Engineering.Verbs.Value {
|
|||||||
/// Checks if the IValue is initialised
|
/// Checks if the IValue is initialised
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>True if IValue is initialised</returns>
|
/// <returns>True if IValue is initialised</returns>
|
||||||
bool isInitialised();
|
bool IsInitialised();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clones the IValue
|
/// Clones the IValue
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ namespace Advanced_Software_Engineering.Verbs.Value.ValueObjects {
|
|||||||
return ToColor().ToArgb();
|
return ToColor().ToArgb();
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool isInitialised() {
|
public bool IsInitialised() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-3
@@ -16,7 +16,7 @@ namespace Advanced_Software_Engineering.Verbs.Value {
|
|||||||
/// </code>
|
/// </code>
|
||||||
/// Where 'stack' is a dictionary of the names and the values of the variables
|
/// Where 'stack' is a dictionary of the names and the values of the variables
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private List<Dictionary<string, IValue>> Variables = new List<Dictionary<string, IValue>>();
|
private List<Dictionary<string, IValue>> Variables;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a new ValueStorage
|
/// Create a new ValueStorage
|
||||||
@@ -29,8 +29,9 @@ namespace Advanced_Software_Engineering.Verbs.Value {
|
|||||||
/// Reset the ValueStorage
|
/// Reset the ValueStorage
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Reset() {
|
public void Reset() {
|
||||||
Variables = new List<Dictionary<string, IValue>>();
|
Variables = new List<Dictionary<string, IValue>> {
|
||||||
Variables.Add(new Dictionary<string, IValue>());
|
new Dictionary<string, IValue>()
|
||||||
|
};
|
||||||
currentStack = 0;
|
currentStack = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -42,7 +42,7 @@ namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
|
|||||||
return ToBool() ? 1 : 0;
|
return ToBool() ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool isInitialised() {
|
public bool IsInitialised() {
|
||||||
return initialised;
|
return initialised;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@ namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
|
|||||||
return Evaluate().GetOriginalType();
|
return Evaluate().GetOriginalType();
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool isInitialised() {
|
public bool IsInitialised() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -46,7 +46,7 @@ namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
|
|||||||
return (int)Math.Round(value);
|
return (int)Math.Round(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool isInitialised() {
|
public bool IsInitialised() {
|
||||||
return initialised;
|
return initialised;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -167,7 +167,7 @@ namespace Advanced_Software_Engineering.Verbs.Value {
|
|||||||
/// Expressions are always initialised
|
/// Expressions are always initialised
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true</returns>
|
/// <returns>true</returns>
|
||||||
public bool isInitialised() {
|
public bool IsInitialised() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -60,7 +60,7 @@ namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool isInitialised() {
|
public bool IsInitialised() {
|
||||||
return initialised;
|
return initialised;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -49,8 +49,8 @@ namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
|
|||||||
/// Get the initialised state of the IValue
|
/// Get the initialised state of the IValue
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>initialised state of the IValue</returns>
|
/// <returns>initialised state of the IValue</returns>
|
||||||
public bool isInitialised() {
|
public bool IsInitialised() {
|
||||||
return Get().isInitialised();
|
return Get().IsInitialised();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -34,9 +34,9 @@ namespace Advanced_Software_Engineering {
|
|||||||
|
|
||||||
CommandAndParameterParserResult result = HelperFunctions.CommandAndParameterParser(fullCommand);
|
CommandAndParameterParserResult result = HelperFunctions.CommandAndParameterParser(fullCommand);
|
||||||
|
|
||||||
string command = result.getCommand();
|
string command = result.GetCommand();
|
||||||
if (command == null) return new NoOp();
|
if (command == null) return new NoOp();
|
||||||
string[] commandParameters = result.getParameters();
|
string[] commandParameters = result.GetParameters();
|
||||||
if (command == null) throw new Exception("There is no command to process");
|
if (command == null) throw new Exception("There is no command to process");
|
||||||
|
|
||||||
IVerb tmpVerb = null;
|
IVerb tmpVerb = null;
|
||||||
|
|||||||
Reference in new issue
Block a user