// Copyright (c) 2019, 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. T method1(T t) => t; Map method2(T t, S s) => {t: s}; const function0 = /*cfe.Function(method1)*/ method1; const int Function(int) instantiation0 = /*cfe.Instantiation(method1)*/ method1; const Map Function(String, int) instantiation1 = /*cfe.Instantiation(method2)*/ method2; main() { print(/*Function(method1)*/ function0); // TODO(paulberry): analyzer should record instantiation information. See // dartbug.com/37608. print( /*cfe|dart2js.Instantiation(method1)*/ /*analyzer.Function(method1)*/ instantiation0); print( /*cfe|dart2js.Instantiation(method2)*/ /*analyzer.Function(method2)*/ instantiation1); }