public void Indent(LuaIndentState indentState, Dictionary <SourceLocation, LuaTokenInfo> tokenMap) { { var startLocation = indentState.GetFirstLine(Conditions); var endLocation = indentState.GetLastLine(Conditions); indentState.Indent(startLocation, endLocation, this); } { var startLocation = indentState.GetFirstLine(Block); var endLocation = indentState.GetLastLine(Block); indentState.Indent(startLocation, endLocation, this); } }
public void Indent(LuaIndentState indentState, Dictionary <SourceLocation, LuaTokenInfo> tokenMap) { if (Arguments != null && Arguments.ChildNodes.Count > 0) { var startLocation = indentState.GetFirstLine(Arguments.ChildNodes[0]); var endLocation = indentState.GetLastLine(Arguments.ChildNodes[Arguments.ChildNodes.Count - 1]); indentState.Indent(startLocation, endLocation, this); } }
public void Indent(LuaIndentState indentState, Dictionary <SourceLocation, LuaTokenInfo> tokenMap) { if (ChildNodes.Count > 0) { var startLocation = indentState.GetFirstLine(ChildNodes[0]); var endLocation = indentState.GetLastLine(ChildNodes[ChildNodes.Count - 1]); indentState.Indent(startLocation, endLocation, Parent); } }