OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef TOOLS_GN_INPUT_CONVERSION_H_ | |
6 #define TOOLS_GN_INPUT_CONVERSION_H_ | |
7 | |
8 #include <string> | |
9 | |
10 class Err; | |
11 class ParseNode; | |
12 class Value; | |
13 | |
14 // Converts the given input string (is read from a file or output from a | |
15 // script) to a Value. Conversions as specified in the input_conversion string | |
16 // will be performed. The given origin will be used for constructing the | |
17 // resulting Value. | |
18 // | |
19 // If the conversion string is invalid, the error will be set and an empty | |
20 // value will be returned. | |
21 Value ConvertInputToValue(const std::string& input, | |
22 const ParseNode* origin, | |
23 const Value& input_conversion_value, | |
24 Err* err); | |
25 | |
26 #endif // TOOLS_GN_INPUT_CONVERSION_H_ | |
OLD | NEW |