debug-server-next
Version:
Dev server for hippy-core.
14 lines (13 loc) • 452 B
JavaScript
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
export class IdentityFormatter {
builder;
constructor(builder) {
this.builder = builder;
}
format(text, lineEndings, fromOffset, toOffset) {
const content = text.substring(fromOffset, toOffset);
this.builder.addToken(content, fromOffset);
}
}