Skip to content

Commit

Permalink
Fix old linting errors
Browse files Browse the repository at this point in the history
This branch didn’t introduce these violations, but they’re preventing
its build from going green.
  • Loading branch information
tomstuart committed Dec 11, 2020
1 parent bcd1b0b commit 05d84e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/truffleruby/parser/BodyTranslator.java
Original file line number Diff line number Diff line change
Expand Up @@ -2009,9 +2009,9 @@ public RubyNode visitLocalVarNode(LocalVarParseNode node) {

if (readNode == null) {
/* This happens for code such as:
*
*
* def destructure4r((*c,d)) [c,d] end
*
*
* We're going to just assume that it should be there and add it... */

environment.declareVar(name);
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/org/truffleruby/parser/parser/ParserSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ public Case3ParseNode newCase3Node(SourceIndexLength position, ParseNode express
}

public InParseNode newInNode(SourceIndexLength position, ParseNode expressionNodes, ParseNode bodyNode,
ParseNode nextCase) {
ParseNode nextCase) {
if (bodyNode == null) {
bodyNode = NilImplicitParseNode.NIL;
}
Expand Down Expand Up @@ -1090,14 +1090,14 @@ public void initTopLocalVariables() {
}

/** Getter for property inSingle.
*
*
* @return Value of property inSingle. */
public boolean isInSingle() {
return inSingleton != 0;
}

/** Setter for property inSingle.
*
*
* @param inSingle New value of property inSingle. */
public void setInSingle(int inSingle) {
this.inSingleton = inSingle;
Expand All @@ -1120,28 +1120,28 @@ public void setIsInClass(boolean inClass) {
}

/** Getter for property inSingle.
*
*
* @return Value of property inSingle. */
public int getInSingle() {
return inSingleton;
}

/** Gets the result.
*
*
* @return Returns a RubyParserResult */
public RubyParserResult getResult() {
return result;
}

/** Sets the result.
*
*
* @param result The result to set */
public void setResult(RubyParserResult result) {
this.result = result;
}

/** Sets the configuration.
*
*
* @param configuration The configuration to set */
public void setConfiguration(ParserConfiguration configuration) {
this.configuration = configuration;
Expand Down Expand Up @@ -1449,7 +1449,7 @@ public void yyerror(String message) {
}

/** generate parsing error
*
*
* @param message text to be displayed.
* @param expected list of acceptable tokens, if available. */
public void yyerror(String message, String[] expected, String found) {
Expand Down

0 comments on commit 05d84e6

Please sign in to comment.