MCPcopy Index your code
hub / github.com/reactjs/react-rails / peekLineTerminator

Function peekLineTerminator

lib/assets/javascripts/JSXTransformer.js:5085–5098  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5083 // Return true if there is a line terminator before the next token.
5084
5085 function peekLineTerminator() {
5086 var pos, line, start, found;
5087
5088 pos = index;
5089 line = lineNumber;
5090 start = lineStart;
5091 skipComment();
5092 found = lineNumber !== line;
5093 index = pos;
5094 lineNumber = line;
5095 lineStart = start;
5096
5097 return found;
5098 }
5099
5100 // Throw an exception
5101

Callers 6

matchAsyncFunction · 0.85
parsePostfixExpressionFunction · 0.85
parseContinueStatementFunction · 0.85
parseBreakStatementFunction · 0.85
parseReturnStatementFunction · 0.85
parseThrowStatementFunction · 0.85

Calls 1

skipCommentFunction · 0.85

Tested by

no test coverage detected