Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: sdk/lib/internal/internal.dart

Issue 2434123003: Merge more Kernel infrastructure from kernel_sdk SDK fork. (Closed)
Patch Set: Address comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart._internal; 5 library dart._internal;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'dart:core' hide Symbol; 9 import 'dart:core' hide Symbol;
10 import 'dart:core' as core; 10 import 'dart:core' as core;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 /** The string that this is the code units of. */ 53 /** The string that this is the code units of. */
54 final String _string; 54 final String _string;
55 55
56 CodeUnits(this._string); 56 CodeUnits(this._string);
57 57
58 int get length => _string.length; 58 int get length => _string.length;
59 int operator[](int i) => _string.codeUnitAt(i); 59 int operator[](int i) => _string.codeUnitAt(i);
60 60
61 static String stringOf(CodeUnits u) => u._string; 61 static String stringOf(CodeUnits u) => u._string;
62 } 62 }
63
64 /// Marks a function as an external implementation ("native" in the Dart VM).
65 ///
66 /// Provides a backend-specific String that can be used to identify the
67 /// function's implementation.
68 class ExternalName {
Florian Schneider 2016/10/21 15:36:09 Where is this class used?
Vyacheslav Egorov (Google) 2016/10/21 15:55:32 It is used in the internals of Dart -> Kernel comp
Florian Schneider 2016/10/21 17:16:02 Thanks!
69 final String name;
70 const ExternalName(this.name);
71 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698