Skip to content

Commit

Permalink
SourceCode: 1.3 准备Cell和Pen合并:rename ,降低重构难度
Browse files Browse the repository at this point in the history
  • Loading branch information
chen56 committed Apr 21, 2024
1 parent 717523b commit d4f635f
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 68 deletions.
109 changes: 53 additions & 56 deletions notes/flutter_web/lib/notes.g.dart

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/you_note_dart/lib/note.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
library note;

export 'src/note_core.dart' show CellPrint;
export 'src/note_route.dart' show NoteSourceData, NoteRouteLazyInitiator, NoteSystem, NoteRoute, NotePage, NotePageBuilder;
export 'src/note_cell.dart' show CellPrint;
export 'src/note_page.dart' show NoteSourceData, NoteRouteLazyInitiator, NoteSystem, NoteRoute, NotePage, NotePageBuilder;
export 'src/content/mockup.dart' show MockupWindow;
export 'src/content/markdown_content.dart' show MD;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter_highlight/themes/vs2015.dart';
import 'package:you_note_dart/src/content/params.dart';
import 'package:you_note_dart/src/flutter_highlight.dart';
import 'package:you_note_dart/core.dart';
import 'package:you_note_dart/src/note_core.dart';
import 'package:you_note_dart/src/note_cell.dart';
import 'package:you_note_dart/ui.dart';
import 'package:code_builder/code_builder.dart' as code;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:flutter_markdown/flutter_markdown.dart';
import 'package:markdown/markdown.dart' as md;
import 'package:meta/meta.dart';
import 'package:you_note_dart/src/flutter_highlight.dart';
import 'package:you_note_dart/src/note_core.dart';
import 'package:you_note_dart/src/note_cell.dart';

class MD extends StatelessWidget {
final String text;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:meta/meta.dart';
import 'package:flutter/material.dart';
import 'package:you_note_dart/src/content/object_content.dart';
import 'package:you_note_dart/src/content/markdown_content.dart';
import 'package:you_note_dart/src/note_route.dart';
import 'package:you_note_dart/src/note_page.dart';
import 'package:source_map_stack_trace/source_map_stack_trace.dart' as source_map_stack_trace;
import 'package:stack_trace/stack_trace.dart';
import 'package:path/path.dart' as path;
Expand Down
4 changes: 2 additions & 2 deletions packages/you_note_dart/lib/src/note_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import 'package:flutter/material.dart';
import 'package:flutter_highlight/themes/atelier-forest-light.dart';
import 'package:you_note_dart/src/flutter_highlight.dart';
import 'package:you_note_dart/src/navigator_v2.dart';
import 'package:you_note_dart/src/note_core.dart';
import 'package:you_note_dart/src/note_route.dart';
import 'package:you_note_dart/src/note_cell.dart';
import 'package:you_note_dart/src/note_page.dart';
import 'package:you_note_dart/src/utils_ui.dart';

/// 分割块,在cell间分割留白
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter/widgets.dart';
import 'package:meta/meta.dart';
import 'package:you_note_dart/note_conf.dart';
import 'package:you_note_dart/src/conventions.dart';
import 'package:you_note_dart/src/note_core.dart';
import 'package:you_note_dart/src/note_cell.dart';
import 'package:you_note_dart/src/utils_core.dart';


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void main() {
group("code analyzer benchmarks", () {
///解析600行的文件 100次,1.7秒,足够做实时解析了
test("parse", () async {
File file = File.fromUri(Uri.file("lib/src/note_core.dart"));
File file = File.fromUri(Uri.file("lib/src/note_cell.dart"));
for (var _ in List.generate(100, (i) => i)) {
var parseResult = parseString(content: file.readAsStringSync(), featureSet: FeatureSet.latestLanguageVersion());
var unit = parseResult.unit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/widgets.dart';
import 'package:you_note_dart/src/note_core.dart';
import 'package:you_note_dart/src/note_cell.dart';

var x = "x";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:checks/checks.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:stack_trace/stack_trace.dart';
import 'package:you_note_dart/src/note_core.dart';
import 'package:you_note_dart/src/note_cell.dart';

final _emptyJsonMap = '{"version":3,"sources":[],"mappings":""}';

Expand Down Expand Up @@ -74,7 +74,7 @@ Exception: my throw
"org-dartlang-sdk:///dart-sdk/lib/async/stream.dart",
"org-dartlang-sdk:///dart-sdk/lib/async/stream_controller.dart",
"../../../lib/notes/pure_dart/execption/note.dart",
"../../../../../packages/you_note_dart/lib/src/note_core.dart",
"../../../../../packages/you_note_dart/lib/src/note_cell.dart",
"org-dartlang-sdk:///dart-sdk/lib/_internal/js_runtime/lib/js_array.dart",
"org-dartlang-sdk:///dart-sdk/lib/internal/iterable.dart",
"../../../../../../../../.pub-cache/hosted/pub.flutter-io.cn/http-1.2.1/lib/http.dart",
Expand Down

0 comments on commit d4f635f

Please sign in to comment.