forked from dart-lang/dart-pad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
context.dart
38 lines (28 loc) · 829 Bytes
/
context.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library context;
import 'services/dartservices.dart';
abstract class ContextBase {
bool get isFocused;
String get dartSource;
String get htmlSource;
String get cssSource;
}
abstract class Context implements ContextBase {
final List<AnalysisIssue> issues = [];
String get focusedEditor;
@override
bool get isFocused => focusedEditor == 'dart';
String? name;
String? description;
@override
String dartSource = '';
@override
String htmlSource = '';
@override
String cssSource = '';
String get activeMode;
Stream<String> get onModeChange;
void switchTo(String name);
}