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

Side by Side Diff: sky/examples/stocks-fn/lib/stock_data.dart

Issue 1011023003: Make stocks-fn match the style for the Sky SDK (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: more Created 5 years, 9 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
« no previous file with comments | « sky/examples/stocks-fn/lib/stock_arrow.dart ('k') | sky/examples/stocks-fn/lib/stock_list.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import "dart:math"; 5 import "dart:math";
6 6
7 // Snapshot from http://www.nasdaq.com/screening/company-list.aspx 7 // Snapshot from http://www.nasdaq.com/screening/company-list.aspx
8 // Fetched 2/23/2014. 8 // Fetched 2/23/2014.
9 // "Symbol","Name","LastSale","MarketCap","IPOyear","Sector","industry","Summary Quote", 9 // "Symbol","Name","LastSale","MarketCap","IPOyear","Sector","industry","Summary Quote",
10 final List<List<String>> _kCompanyList = [ 10 final List<List<String>> _kCompanyList = [
(...skipping 2998 matching lines...) Expand 10 before | Expand all | Expand 10 after
3009 Stock lookupBySymbol(String symbol) { 3009 Stock lookupBySymbol(String symbol) {
3010 this.stocks.forEach((stock) { 3010 this.stocks.forEach((stock) {
3011 if (stock.symbol == symbol) 3011 if (stock.symbol == symbol)
3012 return stock; 3012 return stock;
3013 }); 3013 });
3014 return null; 3014 return null;
3015 } 3015 }
3016 } 3016 }
3017 3017
3018 final StockOracle oracle = new StockOracle.fromCompanyList(_kCompanyList); 3018 final StockOracle oracle = new StockOracle.fromCompanyList(_kCompanyList);
OLDNEW
« no previous file with comments | « sky/examples/stocks-fn/lib/stock_arrow.dart ('k') | sky/examples/stocks-fn/lib/stock_list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698