OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "input_conversion.h" | 5 #include "tools/gn/input_conversion.h" |
6 | 6 |
7 #include "base/strings/string_split.h" | 7 #include "base/strings/string_split.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "tools/gn/build_settings.h" | 9 #include "tools/gn/build_settings.h" |
10 #include "tools/gn/err.h" | 10 #include "tools/gn/err.h" |
11 #include "tools/gn/input_file.h" | 11 #include "tools/gn/input_file.h" |
12 #include "tools/gn/label.h" | 12 #include "tools/gn/label.h" |
13 #include "tools/gn/parse_tree.h" | 13 #include "tools/gn/parse_tree.h" |
14 #include "tools/gn/parser.h" | 14 #include "tools/gn/parser.h" |
15 #include "tools/gn/scope.h" | 15 #include "tools/gn/scope.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 return ParseString(input, origin, err); | 196 return ParseString(input, origin, err); |
197 if (input_conversion == "string") | 197 if (input_conversion == "string") |
198 return Value(origin, input); | 198 return Value(origin, input); |
199 if (input_conversion == "list lines") | 199 if (input_conversion == "list lines") |
200 return ParseList(input, origin, err); | 200 return ParseList(input, origin, err); |
201 | 201 |
202 *err = Err(input_conversion_value, "Not a valid read file mode.", | 202 *err = Err(input_conversion_value, "Not a valid read file mode.", |
203 "Have you considered a career in retail?"); | 203 "Have you considered a career in retail?"); |
204 return Value(); | 204 return Value(); |
205 } | 205 } |
OLD | NEW |