MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / SetEndOfLineState

Method SetEndOfLineState

LuaParser/src/File/LuaSource.cpp:164–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void LuaSource::SetEndOfLineState(EndOfLine endOfLine) {
165 switch (_lineState) {
166 case EndOfLine::UNKNOWN: {
167 _lineState = endOfLine;
168 break;
169 }
170 case EndOfLine::CR:
171 case EndOfLine::LF:
172 case EndOfLine::CRLF: {
173 if (_lineState != endOfLine) {
174 _lineState = EndOfLine::MIX;
175 }
176 break;
177 }
178 default: {
179 break;
180 }
181 }
182}
183
184EndOfLine LuaSource::GetEndOfLine() const {
185 return _lineState;

Callers 1

IncLinenumberMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected