JS backend: moved SourceMapBuilder interface to our sources.
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -21,6 +21,7 @@ import com.google.dart.compiler.backend.js.ast.*;
|
||||
import com.google.dart.compiler.util.TextOutput;
|
||||
import com.intellij.util.SmartList;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.js.compiler.sourcemap.SourceMapBuilder;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ import com.google.dart.compiler.common.SourceInfo;
|
||||
import com.google.dart.compiler.util.TextOutput;
|
||||
import com.intellij.util.PairConsumer;
|
||||
import gnu.trove.TObjectIntHashMap;
|
||||
import org.jetbrains.js.compiler.SourceMapBuilder;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright 2010-2013 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.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.jetbrains.js.compiler.sourcemap;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public interface SourceMapBuilder {
|
||||
void newLine();
|
||||
|
||||
void addMapping(String source, int sourceLine, int sourceColumn);
|
||||
|
||||
void processSourceInfo(Object info);
|
||||
|
||||
void addLink();
|
||||
|
||||
File getOutFile();
|
||||
|
||||
String build();
|
||||
}
|
||||
@@ -25,8 +25,8 @@ import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.jet.lang.psi.JetFile;
|
||||
import org.jetbrains.jet.lang.resolve.BindingContext;
|
||||
import org.jetbrains.js.compiler.JsSourceGenerationVisitor;
|
||||
import org.jetbrains.js.compiler.SourceMapBuilder;
|
||||
import org.jetbrains.js.compiler.sourcemap.SourceMap3Builder;
|
||||
import org.jetbrains.js.compiler.sourcemap.SourceMapBuilder;
|
||||
import org.jetbrains.k2js.analyze.AnalyzerFacadeForJS;
|
||||
import org.jetbrains.k2js.config.Config;
|
||||
import org.jetbrains.k2js.facade.exceptions.TranslationException;
|
||||
|
||||
@@ -20,7 +20,7 @@ import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import com.intellij.util.PairConsumer;
|
||||
import org.jetbrains.js.compiler.SourceMapBuilder;
|
||||
import org.jetbrains.js.compiler.sourcemap.SourceMapBuilder;
|
||||
|
||||
class SourceMapBuilderConsumer implements PairConsumer<SourceMapBuilder, Object> {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user