| // Copyright (c) 2018, 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. |
| |
| /*element: main:[null]*/ |
| main() { |
| typeLiteral(); |
| typeLiteralToString(); |
| typeLiteralSubstring(); |
| } |
| |
| /*element: typeLiteral:[exact=TypeImpl]*/ |
| typeLiteral() => Object; |
| |
| /*strong.element: typeLiteralToString:[exact=JSString]*/ |
| typeLiteralToString() => (Object). /*invoke: [exact=TypeImpl]*/ toString(); |
| |
| /*element: typeLiteralSubstring:[exact=JSString]*/ |
| typeLiteralSubstring() { |
| String name = (List). /*invoke: [exact=TypeImpl]*/ toString(); |
| name = name. /*strong.invoke: [exact=JSString]*/ substring( |
| 0, name. /*strong.invoke: [exact=JSString]*/ indexOf('<')); |
| return name; |
| } |