38+ results for 'endline' (0 ms)

Not the results you expected?

XHTMLText.java (https://github.com/joechen2010/IM.git) Java · 429 lines

256 * @param style the style of the line item

257 */

258 public void appendLineItemTag(String style) {

259 StringBuilder sb = new StringBuilder("<li");

260 if (style != null) {

SimpleCharStream.java (https://gitlab.com/isometric/Coursework) Java · 472 lines

216 /**

217 * @deprecated

218 * @see #getEndLine

219 */

220

229

230 /** Get token end line number. */

231 public int getEndLine() {

232 return bufline[bufpos];

233 }

JavaCharStream.java (https://github.com/hubertp/Prefuse.git) Java · 551 lines

348 /**

349 * @deprecated

350 * @see #getEndLine

351 */

352

359 }

360

361 static public int getEndLine() {

362 return bufline[bufpos];

363 }

chew.cpp (https://github.com/somaen/scummvm.git) C++ · 503 lines

92 }

93

94 int AIScriptChew::GetFriendlinessModifierIfGetsClue(int otherActorId, int clueId) {

95 return 0;

96 }

ezmark.php (https://github.com/eeggenberger/ezpublish.git) PHP · 301 lines

16 $script->startup();

17

18 $endl = $cli->endlineString();

19 $webOutput = $cli->isWebOutput();

20

GherkinLanguageService.cs (https://github.com/dablo/SpecFlow.git) C# · 242 lines

165

166 var firstChanged = firstChanged1 != null && firstChanged1.GetStartLine() < firstChanged2.GetStartLine() ? firstChanged1 : firstChanged2;

167 var lastChanged = lastChanged1 != null && lastChanged1.GetEndLine() > lastChanged2.GetEndLine() ? lastChanged1 : lastChanged2;

168

169 var changedBlocks = change2.GherkinFileScope.GetAllBlocks().SkipFromItemInclusive(firstChanged).TakeUntilItemInclusive(lastChanged);

ddl.sql (https://gitlab.com/admin-github-cloud/Dexter) SQL · 293 lines

37 did bigint NOT NULL,

38 startLine int NOT NULL,

39 endLine int NOT NULL,

40 charStart int,

41 charEnd int,

112 did bigint NOT NULL,

113 startLine int NOT NULL,

114 endLine int NOT NULL,

115 charStart int,

116 charEnd int,

128 approvalNo int,

129

130 CONSTRAINT pk_SnapshotOccurenceMap PRIMARY KEY (snapshotId, did, startLine, endLine, charStart, charEnd),

131 FOREIGN KEY (snapshotId) REFERENCES Snapshot(id) ON DELETE CASCADE,

132 FOREIGN KEY (did) REFERENCES Defect(did)

ScreenLineManager.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 140 lines ✨ Summary

This Java class, ScreenLineManager, manages the mapping between physical lines and screen lines in a text editor. It keeps track of the number of visible lines on the screen for each line in the buffer, allowing for efficient scrolling and updating of the screen display when content is inserted or removed.

93 public void contentInserted(int startLine, int numLines)

94 {

95 int endLine = startLine + numLines;

96 screenLines[startLine] &= ~SCREEN_LINES_VALID_MASK;

97

109

110 System.arraycopy(screenLines,startLine,screenLines,

111 endLine,lineCount - endLine);

112

113 for(int i = 0; i < numLines; i++)

119 public void contentRemoved(int startLine, int numLines)

120 {

121 int endLine = startLine + numLines;

122 screenLines[startLine] &= ~SCREEN_LINES_VALID_MASK;

123

MethodDeclaration.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 426 lines ✨ Summary

This Java class represents a method declaration in PHP, parsing its syntax and structure. It analyzes the method’s body, statements, and variables to identify potential issues such as unassigned variables, unused code, and incorrect usage of special variables like this. The class provides methods for getting the method’s name, start and end positions, and expressions at specific lines and columns.

197 for (int i = 0; i < assignedVariablesInCode.size(); i++) {

198 VariableUsage variableUsage = (VariableUsage) assignedVariablesInCode.get(i);

199 if (variableUsage.getEndLine() > line || (variableUsage.getEndLine() == line && variableUsage.getBeginColumn() > column)) {

200 // We do not need variables declared after the given line

201 break;

269 param.getSourceEnd(),

270 param.getBeginLine(),

271 param.getEndLine(),

272 param.getBeginColumn(),

273 param.getEndColumn()));

278 param.getSourceStart() + param.getName().length(),

279 token.beginLine,

280 token.endLine,

281 token.beginColumn,

282 token.endColumn));*/

TextUtilities.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 671 lines ✨ Summary

This Java code is a text processing utility that provides various string manipulation functions, including formatting, case conversion, and whitespace detection. It can be used to process and transform strings in different ways, such as converting them to title case, detecting mixed case, or formatting lines of text for display. The code appears to be part of a larger text editor or word processing application.

101 * on-screen bracket matching because only visible lines need to be

102 * scanned

103 * @param endLine The last line to scan. This is used to speed up

104 * on-screen bracket matching because only visible lines need to be

105 * scanned

107 */

108 public static int findMatchingBracket(Buffer buffer, int line, int offset,

109 int startLine, int endLine)

110 {

111 if(offset < 0 || offset >= buffer.getLineLength(line))

183 //{{{ Go on to next line

184 line++;

185 if(line > endLine)

186 break;

187 buffer.getLineText(line,lineText);

PHPParser.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 7946 lines ✨ Summary

This Java code is a parser for PHP syntax, specifically for parsing abstract classes and their bodies. It breaks down the syntax into smaller methods, each handling a specific part of the class definition, such as common modifiers, method modifiers, field declarations, and more. The code uses a recursive descent approach to parse the input PHP code.

151 node.getSourceEnd(),

152 node.getBeginLine(),

153 node.getEndLine(),

154 node.getBeginColumn(),

155 node.getEndColumn()));

305 //String html = jj_input_stream.getCurrentBuffer().substring(htmlStart, currentPosition);

306 String html = "";

307 pushOnAstNodes(new HTMLCode(html, htmlStart,currentPosition,htmlLineStart,token.endLine,htmlColumnStart,token.endColumn));

308 } //}}}

309

809 namespaceToken = jj_consume_token(NAMESPACE);

810 sourceEnd = namespaceToken.sourceEnd;

811 endLine = namespaceToken.endLine;

812 endColumn = namespaceToken.endColumn;

813 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {

HtmlParser.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 643 lines

125 Token t = pe.currentToken;

126 if ( t != null ) {

127 return new Range( new Location( t.next.beginLine - 1, t.next.beginColumn ), new Location( t.next.endLine - 1, t.next.endColumn ) );

128 }

129

265 t.beginLine = matchedToken.beginLine;

266 t.beginColumn = matchedToken.beginColumn;

267 t.endLine = matchedToken.endLine;

268 t.endColumn = matchedToken.endColumn;

269 matchedToken.next = t;

434 }

435 rtn_tag.setStartLocation(st.beginLine, st.beginColumn);

436 rtn_tag.setEndLocation(et.endLine, et.endColumn + 1);

437 rtn_tag.setIsJspTag(isJspTag);

438 return rtn_tag;

ArrayInitializer.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 107 lines ✨ Summary

This Java class represents an array initializer in PHP syntax, such as array('a','b','c') or array('a' => 2,'b' = '3'). It provides methods to convert the expression to a string, retrieve variables used, modified, and outside of the array initializer. The class also analyzes the code for the array initializer’s variables.

22 * @param sourceEnd the ending offset

23 * @param beginLine begin line

24 * @param endLine ending line

25 * @param beginColumn begin column

26 * @param endColumn ending column

30 int sourceEnd,

31 int beginLine,

32 int endLine,

33 int beginColumn,

34 int endColumn) {

35 super(Type.ARRAY, sourceStart, sourceEnd, beginLine, endLine, beginColumn, endColumn);

36 this.vars = vars;

37 }

Literal.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 40 lines ✨ Summary

This Java class represents a superclass of literal expressions in an abstract syntax tree (AST). It provides methods to retrieve variables from outside, modified variables, and used variables, as well as a method to get an expression at a specific line and column. The class is abstract, meaning it cannot be instantiated directly, and serves as a base for concrete subclasses that implement its methods.

9 public abstract class Literal extends Expression {

10

11 protected Literal(Type type, int sourceStart, int sourceEnd, int beginLine, int endLine, int beginColumn, int endColumn) {

12 super(type, sourceStart, sourceEnd, beginLine, endLine, beginColumn, endColumn);

InterfaceIdentifier.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 43 lines ✨ Summary

This Java class, InterfaceIdentifier, extends ObjectIdentifier and represents an interface identifier in a PHP program. It has two constructors: one that takes a string name and source information, and another that takes a Token object from a PHP parser. The class is likely used to parse and represent interfaces in the PHP compiler’s abstract syntax tree (AST).

30 public class InterfaceIdentifier extends ObjectIdentifier

31 {

32 public InterfaceIdentifier(String name, int sourceStart, int sourceEnd, int beginLine, int endLine,

33 int beginColumn, int endColumn)

34 {

35 super(name, sourceStart, sourceEnd, beginLine, endLine, beginColumn, endColumn);

36 }

37

HtmlParser.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 620 lines

166 t.beginLine = matchedToken.beginLine;

167 t.beginColumn = matchedToken.beginColumn;

168 t.endLine = matchedToken.endLine;

169 t.endColumn = matchedToken.endColumn;

170 matchedToken.next = t;

Tiger.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 4099 lines

134 if (t == null)

135 return new Location(0, 0);

136 return new Location(t.endLine, t.endColumn + 1);

137 }

138

199 m.beginColumn = t.beginColumn;

200 }

201 if (m.endLine < t.endLine) {

202 m.endLine = t.endLine;

203 }

204 if (m.endLine == t.endLine && m.endColumn < t.endColumn) {

205 m.endColumn = t.endColumn;

206 }

Token.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 84 lines ✨ Summary

This Java class represents a token in a parser, containing information such as its kind, position, and string image. It also has references to other tokens, including special tokens that occur before regular tokens. The class provides methods for accessing and manipulating this information, allowing it to be used in a parser’s lexical actions.

17 /**

18 * beginLine and beginColumn describe the position of the first character

19 * of this token; endLine and endColumn describe the position of the

20 * last character of this token.

21 */

22 public int beginLine, beginColumn, endLine, endColumn;

23

24 //Matthieu Casanova addition

AbstractSuffixExpression.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 19 lines ✨ Summary

This Java class defines an abstract AbstractSuffixExpression that extends the Expression class. It represents a variable suffix, such as a class access or an array index, and is used to parse PHP code. The class has a constructor that takes various parameters, including the type of expression, source code positions, and line/column numbers.

11 int sourceEnd,

12 int beginLine,

13 int endLine,

14 int beginColumn,

15 int endColumn) {

16 super(type, sourceStart, sourceEnd, beginLine, endLine, beginColumn, endColumn);

17 }

18 }

PHPHyperlink.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 115 lines ✨ Summary

This Java class, PHPHyperlink, implements a hyperlink functionality for a text editor. It represents a hyperlink to a PHP file and provides methods to get its start and end offsets, lines, and tooltip. When clicked, it opens the corresponding PHP file in the text editor and moves the caret position to the line where the hyperlink is located.

72

73 @Override

74 public int getEndLine()

75 {

76 return line;

JEditBuffer.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 2670 lines ✨ Summary

This Java code is part of a text editor implementation, specifically handling buffer-local properties and indentation rules. It parses property values from a string, stores them in a map, and applies indentation rules based on the current line’s mode and context. The code also manages transactions, undoing, and dirty state for the editor.

748

749 int startLine = lineMgr.getLineOfOffset(offset);

750 int endLine = lineMgr.getLineOfOffset(offset + length);

751

752 int numLines = endLine - startLine;

HtmlParser.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 620 lines

125 Token t = pe.currentToken;

126 if ( t != null ) {

127 return new Range( new Location( t.next.beginLine - 1, t.next.beginColumn ), new Location( t.next.endLine - 1, t.next.endColumn ) );

128 }

129

265 t.beginLine = matchedToken.beginLine;

266 t.beginColumn = matchedToken.beginColumn;

267 t.endLine = matchedToken.endLine;

268 t.endColumn = matchedToken.endColumn;

269 matchedToken.next = t;

429 }

430 rtn_tag.setStartLocation(st.beginLine, st.beginColumn);

431 rtn_tag.setEndLocation(et.endLine, et.endColumn);

432 rtn_tag.setIsJspTag(isJspTag);

433 return rtn_tag;

ArrayVariableDeclaration.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 115 lines ✨ Summary

This Java class represents an array variable declaration in a PHP script, allowing for key-value pairs to be defined within an array. It provides methods for getting modified and used variables, analyzing code, and converting expressions to strings. The class extends another Expression class and has two main components: the key and value expressions.

24 int sourceEnd,

25 int beginLine,

26 int endLine,

27 int beginColumn,

28 int endColumn) {

29 super(Type.UNKNOWN, sourceStart, sourceEnd, beginLine, endLine, beginColumn, endColumn);

30 this.key = key;

31 this.value = value;

41 int sourceEnd,

42 int beginLine,

43 int endLine,

44 int beginColumn,

45 int endColumn) {

Selection.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 766 lines ✨ Summary

This Java class appears to be a part of an editor’s text selection functionality, managing the start and end positions of a selected text range within a buffer (likely a text document). It handles insertion, removal, and movement of content within the buffer, updating the selection boundaries accordingly. The class seems to be designed for efficient and accurate text selection management in an editor.

129 return getClass().getName() + "[start=" + start

130 + ",end=" + end + ",startLine=" + startLine

131 + ",endLine=" + endLine + ']';

132 } //}}}

133

378 this.startLine = startLine;

379 this.start = start;

380 this.endLine = endLine;

381 this.end = end;

382 } //}}}

387 {

388 this.startLine = startLine;

389 this.endLine = endLine;

390

391 int[] width = new int[1];

bsh.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 2723 lines

83 void reInitTokenInput( Reader in ) {

84 jj_input_stream.ReInit( in,

85 jj_input_stream.getEndLine(),

86 jj_input_stream.getEndColumn() );

87 }

Token.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 91 lines ✨ Summary

This Java code defines a Token class that represents an input token stream in a parser. It stores information about the token’s kind, position, and string image, as well as references to adjacent tokens. The class provides methods for accessing and manipulating this information, including creating new Token objects based on their kind.

26 /**

27 * beginLine and beginColumn describe the position of the first character

28 * of this token; endLine and endColumn describe the position of the

29 * last character of this token.

30 */

31 public int beginLine, beginColumn, endLine, endColumn;

32

33 /**

JavaCharStream.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 548 lines ✨ Summary

This Java class implements a line-based text scanner, allowing for tokenization and adjustment of line and column numbers at the start of a token. It reads input from an underlying stream (e.g., file or network connection) and provides methods to get the current line and column numbers, as well as the next character in the input. The class also supports adjusting the starting point of a token within the input.

348 /**

349 * @deprecated

350 * @see #getEndLine

351 */

352

359 }

360

361 public int getEndLine() {

362 return bufline[bufpos];

363 }

FalseLiteral.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 37 lines ✨ Summary

This Java class represents a false literal in PHP syntax, extending the MagicLiteral class. It takes a Token object as input and initializes its properties with the token’s source information. The class provides overridden methods for string representation and code analysis, returning “false” in both cases.

12 public FalseLiteral(Token token)

13 {

14 super(Type.BOOLEAN, token.sourceStart, token.sourceEnd, token.beginLine, token.endLine, token.beginColumn, token.endColumn);

15 }

16

XMLHttpRequest.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1131 lines

182 , m_sameOriginRequest(true)

183 , m_receivedLength(0)

184 , m_lastSendLineNumber(0)

185 , m_exceptionCode(0)

186 , m_progressEventThrottle(this)

992 #endif

993

994 InspectorInstrumentation::resourceRetrievedByXMLHttpRequest(scriptExecutionContext(), identifier, m_responseBuilder.toStringPreserveCapacity(), m_url, m_lastSendURL, m_lastSendLineNumber);

995

996 bool hadLoader = m_loader;

Make_Get_and_Set_Methods.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 298 lines

164

165 textArea.setCaretPosition(selectionEnd);

166 int endLine = textArea.getCaretLine();

167

168 StringBuffer code = new StringBuffer();

169 String className = getClassName();

170

171 for(int i = startLine; i <= endLine; i++)

172 {

173 String lineText = textArea.getLineText(i);

NullLiteral.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 33 lines ✨ Summary

This Java class represents a null literal in PHP syntax, extending the MagicLiteral class. It takes a Token object as input and initializes its properties with the token’s source information. The class provides a toStringExpression() method to return the string representation of the null literal (“null”) and an empty analyzeCode() method for further analysis.

12 public NullLiteral(Token token)

13 {

14 super(Type.NULL, token.sourceStart, token.sourceEnd, token.beginLine, token.endLine, token.beginColumn, token.endColumn);

15 }

16

InclusionExpression.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 261 lines ✨ Summary

This Java class represents an Inclusion Expression in a PHP parser, which is used to parse and analyze PHP code. It extends another class Expression and implements several methods for parsing and analyzing the expression, including getting variables used, modified, and outside of the expression. It also provides information about the expression’s start and end positions in the code.

60 int sourceEnd,

61 int beginLine,

62 int endLine,

63 int beginColumn,

64 int endColumn)

65 {

66 super(Type.INTEGER, sourceStart, sourceEnd, beginLine, endLine, beginColumn, endColumn);

67 this.keyword = keyword;

68 this.expression = expression;

MethodDeclaration.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 306 lines ✨ Summary

This Java code is part of a PHP parser, specifically designed to analyze and warn about unused parameters in methods. It checks if variables used in a method are declared before their usage, and if not, fires a warning message with information about the variable’s source location. The code also handles special cases like the “this” keyword and unassigned variables.

219 param.getSourceEnd(),

220 param.getBeginLine(),

221 param.getEndLine(),

222 param.getBeginColumn(),

223 param.getEndColumn()));

228 param.getSourceStart() + param.getName().length(),

229 token.beginLine,

230 token.endLine,

231 token.beginColumn,

232 token.endColumn));*/

272 variableUsage.getSourceEnd(),

273 variableUsage.getBeginLine(),

274 variableUsage.getEndLine(),

275 variableUsage.getBeginColumn(),

276 variableUsage.getEndColumn()));

Else.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 143 lines ✨ Summary

This Java class represents an “else” statement in a PHP script. It extends another class called Statement and contains an array of statements that follow the “else”. The class provides methods to convert itself to a string, get variables used by its child statements, analyze code with a PHP parser, and more.

31 int sourceEnd,

32 int beginLine,

33 int endLine,

34 int beginColumn,

35 int endColumn)

36 {

37 super(sourceStart, sourceEnd, beginLine, endLine, beginColumn, endColumn);

38 this.statements = statements;

39 }

50 int sourceEnd,

51 int beginLine,

52 int endLine,

53 int beginColumn,

54 int endColumn)

FormalParameter.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 83 lines ✨ Summary

This Java class represents a formal parameter in PHP programming language, which is part of an Abstract Syntax Tree (AST) compiler. It stores information about the parameter’s name, reference status, default value, and source code location. The class provides methods to convert it to a string representation and analyze its usage in the code.

24 int sourceEnd,

25 int beginLine,

26 int endLine,

27 int beginColumn,

28 int endColumn) {

29 super(Type.UNKNOWN, sourceStart, sourceEnd, beginLine, endLine, beginColumn, endColumn);

30 this.name = name;

31 this.reference = reference;

38 int sourceEnd,

39 int beginLine,

40 int endLine,

41 int beginColumn,

42 int endColumn) {

HTMLCode.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 87 lines ✨ Summary

This Java class represents HTML code within a PHP script. It contains an htmlCode string and provides methods to return this string, including with indentation (tabs). The class also has methods for analyzing variables used in the HTML code, but these are currently empty. It extends another class called Statement, indicating it’s part of a larger PHP compiler or parser system.

19 * @param sourceEnd ending offset

20 * @param beginLine begin line

21 * @param endLine ending line

22 * @param beginColumn begin column

23 * @param endColumn ending column

27 int sourceEnd,

28 int beginLine,

29 int endLine,

30 int beginColumn,

31 int endColumn) {

32 super(sourceStart, sourceEnd, beginLine, endLine, beginColumn, endColumn);

33 this.htmlCode = htmlCode;

34 }

FieldDeclaration.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 249 lines ✨ Summary

This Java class represents a Field Declaration in PHP, which is a variable declaration for a php class. It extends Statement and implements various interfaces to provide information about the field, such as its name, path, and variables. It also provides methods to analyze code and get the field’s expression at a specific line and column.

50 * @param sourceEnd source end

51 * @param beginLine begin line

52 * @param endLine end line

53 * @param beginColumn begin column

54 * @param endColumn end column

60 int sourceEnd,

61 int beginLine,

62 int endLine,

63 int beginColumn,

64 int endColumn)

71 sourceEnd,

72 beginLine,

73 endLine,

74 beginColumn,

75 endColumn);

UnaryExpression.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 73 lines ✨ Summary

This Java class represents a unary expression in an abstract syntax tree (AST) for PHP programming language. It extends another class OperatorExpression and contains an instance of Expression. The class provides methods to get variables used, modified, and outside the expression, as well as analyze code with a given parser.

19 int sourceEnd,

20 int beginLine,

21 int endLine,

22 int beginColumn,

23 int endColumn)

24 {

25 super(expression.getType(), operator, sourceStart, sourceEnd, beginLine, endLine, beginColumn, endColumn);

26 this.expression = expression;

27 }