diff options
Diffstat (limited to 'xml/impl/src/com/intellij/codeInsight/template/emmet/nodes/MulOperationNode.java')
-rw-r--r-- | xml/impl/src/com/intellij/codeInsight/template/emmet/nodes/MulOperationNode.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xml/impl/src/com/intellij/codeInsight/template/emmet/nodes/MulOperationNode.java b/xml/impl/src/com/intellij/codeInsight/template/emmet/nodes/MulOperationNode.java index ec9eee193c80..1934d9e07099 100644 --- a/xml/impl/src/com/intellij/codeInsight/template/emmet/nodes/MulOperationNode.java +++ b/xml/impl/src/com/intellij/codeInsight/template/emmet/nodes/MulOperationNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2010 JetBrains s.r.o. + * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package com.intellij.codeInsight.template.emmet.nodes; import com.intellij.codeInsight.template.CustomTemplateCallback; import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; import java.util.ArrayList; import java.util.List; @@ -55,6 +56,11 @@ public class MulOperationNode extends ZenCodingNode { } @Override + public int getApproximateOutputLength(@Nullable CustomTemplateCallback callback) { + return myLeftOperand.getApproximateOutputLength(callback) * myRightOperand; + } + + @Override public String toString() { return "*"; } |