Fixed VisualStudio Suggestions

This commit is contained in:
Lukasz Baldyga committed 2020-12-04 18:54:34 +00:00
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
/// </summary>
/// <returns>the command</returns>
public string getCommand() {
public string GetCommand() {
return command;
}
@@ -32,7 +32,7 @@ namespace Advanced_Software_Engineering {
/// Gets the command parameters
/// </summary>
/// <returns>command parameters</returns>
public string[] getParameters() {
public string[] GetParameters() {
return parameters;
}
}
@@ -107,7 +107,7 @@ namespace Advanced_Software_Engineering.Verbs.Flow {
/// Checks if the result is initilised (Experimental)
/// </summary>
/// <returns></returns>
public bool isInitialised() {
public bool IsInitialised() {
return init;
}
@@ -47,7 +47,7 @@ namespace Advanced_Software_Engineering.Verbs.Value {
/// Checks if the IValue is initialised
/// </summary>
/// <returns>True if IValue is initialised</returns>
bool isInitialised();
bool IsInitialised();
/// <summary>
/// Clones the IValue
@@ -59,7 +59,7 @@ namespace Advanced_Software_Engineering.Verbs.Value.ValueObjects {
return ToColor().ToArgb();
}
public bool isInitialised() {
public bool IsInitialised() {
return true;
}
@@ -16,7 +16,7 @@ namespace Advanced_Software_Engineering.Verbs.Value {
/// </code>
/// Where 'stack' is a dictionary of the names and the values of the variables
/// </summary>
private List<Dictionary<string, IValue>> Variables = new List<Dictionary<string, IValue>>();
private List<Dictionary<string, IValue>> Variables;
/// <summary>
/// Create a new ValueStorage
@@ -29,8 +29,9 @@ namespace Advanced_Software_Engineering.Verbs.Value {
/// Reset the ValueStorage
/// </summary>
public void Reset() {
Variables = new List<Dictionary<string, IValue>>();
Variables.Add(new Dictionary<string, IValue>());
Variables = new List<Dictionary<string, IValue>> {
new Dictionary<string, IValue>()
};
currentStack = 0;
}
@@ -42,7 +42,7 @@ namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
return ToBool() ? 1 : 0;
}
public bool isInitialised() {
public bool IsInitialised() {
return initialised;
}
@@ -34,7 +34,7 @@ namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
return Evaluate().GetOriginalType();
}
public bool isInitialised() {
public bool IsInitialised() {
return true;
}
@@ -46,7 +46,7 @@ namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
return (int)Math.Round(value);
}
public bool isInitialised() {
public bool IsInitialised() {
return initialised;
}
@@ -167,7 +167,7 @@ namespace Advanced_Software_Engineering.Verbs.Value {
/// Expressions are always initialised
/// </summary>
/// <returns>true</returns>
public bool isInitialised() {
public bool IsInitialised() {
return true;
}
@@ -60,7 +60,7 @@ namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
return value;
}
public bool isInitialised() {
public bool IsInitialised() {
return initialised;
}
@@ -49,8 +49,8 @@ namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
/// Get the initialised state of the IValue
/// </summary>
/// <returns>initialised state of the IValue</returns>
public bool isInitialised() {
return Get().isInitialised();
public bool IsInitialised() {
return Get().IsInitialised();
}
/// <summary>
@@ -34,9 +34,9 @@ namespace Advanced_Software_Engineering {
CommandAndParameterParserResult result = HelperFunctions.CommandAndParameterParser(fullCommand);
string command = result.getCommand();
string command = result.GetCommand();
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");
IVerb tmpVerb = null;