AvalonStudio.Toolchains.Clang.ArmGCCLinkTemplateBase.PopIndent C# (CSharp) Method

PopIndent() public method

Remove the last indent that was added with PushIndent
public PopIndent ( ) : string
return string
		public string PopIndent()
		{
			var returnValue = "";
			if (indentLengths.Count > 0)
			{
				var indentLength = indentLengths[indentLengths.Count - 1];
				indentLengths.RemoveAt(indentLengths.Count - 1);
				if (indentLength > 0)
				{
					returnValue = CurrentIndent.Substring(CurrentIndent.Length - indentLength);
					CurrentIndent = CurrentIndent.Remove(CurrentIndent.Length - indentLength);
				}
			}
			return returnValue;
		}