From 4dee2b6f321f2bdc456c53069ae91fb5fcd5c3ed Mon Sep 17 00:00:00 2001 From: meri Date: Thu, 27 Mar 2014 21:30:00 +0100 Subject: [PATCH] Another clean up #22 --- .../java/com/github/sommeri/less4j/EmbeddedLessGenerator.java | 2 +- .../java/com/github/sommeri/less4j/EmbeddedScriptGenerator.java | 2 +- .../core/compiler/expressions/strings/StringInterpolator.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/github/sommeri/less4j/EmbeddedLessGenerator.java b/src/main/java/com/github/sommeri/less4j/EmbeddedLessGenerator.java index c0d9f3c3..cc37d213 100644 --- a/src/main/java/com/github/sommeri/less4j/EmbeddedLessGenerator.java +++ b/src/main/java/com/github/sommeri/less4j/EmbeddedLessGenerator.java @@ -10,7 +10,7 @@ public EmbeddedLessGenerator() { } @Override - public String toScriptExpression(Expression value, LessProblems problemsHandler) { + public String toScript(Expression value, LessProblems problemsHandler) { InStringCssPrinter builder = new InStringCssPrinter(); builder.append(value); String replacement = builder.toString(); diff --git a/src/main/java/com/github/sommeri/less4j/EmbeddedScriptGenerator.java b/src/main/java/com/github/sommeri/less4j/EmbeddedScriptGenerator.java index c0eb3b59..4515117b 100644 --- a/src/main/java/com/github/sommeri/less4j/EmbeddedScriptGenerator.java +++ b/src/main/java/com/github/sommeri/less4j/EmbeddedScriptGenerator.java @@ -4,6 +4,6 @@ public interface EmbeddedScriptGenerator { - String toScriptExpression(Expression value, LessProblems problemsHandler); + String toScript(Expression value, LessProblems problemsHandler); } diff --git a/src/main/java/com/github/sommeri/less4j/core/compiler/expressions/strings/StringInterpolator.java b/src/main/java/com/github/sommeri/less4j/core/compiler/expressions/strings/StringInterpolator.java index 46c119f7..e0c71d83 100644 --- a/src/main/java/com/github/sommeri/less4j/core/compiler/expressions/strings/StringInterpolator.java +++ b/src/main/java/com/github/sommeri/less4j/core/compiler/expressions/strings/StringInterpolator.java @@ -42,7 +42,7 @@ protected String replacementValue(ExpressionEvaluator expressionEvaluator, Hidde return matchRange.getFullMatch(); } - return embeddedScriptEvaluator.toScriptExpression(value, problemsHandler); + return embeddedScriptEvaluator.toScript(value, problemsHandler); } }