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

Side by Side Diff: tools/gn/functions.h

Issue 2554863002: Cleanup remaining class/struct fwd declarations (Closed)
Patch Set: Style fixes Created 4 years 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 | « tools/gn/filesystem_utils.h ('k') | tools/gn/header_checker.h » ('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 (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 #ifndef TOOLS_GN_FUNCTIONS_H_ 5 #ifndef TOOLS_GN_FUNCTIONS_H_
6 #define TOOLS_GN_FUNCTIONS_H_ 6 #define TOOLS_GN_FUNCTIONS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/strings/string_piece.h" 12 #include "base/strings/string_piece.h"
13 13
14 class Err; 14 class Err;
15 class BlockNode; 15 class BlockNode;
16 class FunctionCallNode; 16 class FunctionCallNode;
17 class Label; 17 class Label;
18 class ListNode; 18 class ListNode;
19 class ParseNode; 19 class ParseNode;
20 class Scope; 20 class Scope;
21 class Token;
22 class Value; 21 class Value;
23 22
24 // ----------------------------------------------------------------------------- 23 // -----------------------------------------------------------------------------
25 24
26 namespace functions { 25 namespace functions {
27 26
28 // This type of function invocation has no block and evaluates its arguments 27 // This type of function invocation has no block and evaluates its arguments
29 // itself rather than taking a pre-executed list. This allows us to implement 28 // itself rather than taking a pre-executed list. This allows us to implement
30 // certain built-in functions. 29 // certain built-in functions.
31 typedef Value (*SelfEvaluatingArgsFunction)(Scope* scope, 30 typedef Value (*SelfEvaluatingArgsFunction)(Scope* scope,
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 Scope* scope_; 495 Scope* scope_;
497 const FunctionCallNode* function_; 496 const FunctionCallNode* function_;
498 const char* type_description_; 497 const char* type_description_;
499 498
500 // Set to true when the key is added to the scope so we don't try to 499 // Set to true when the key is added to the scope so we don't try to
501 // delete nonexistant keys which will cause assertions. 500 // delete nonexistant keys which will cause assertions.
502 bool key_added_; 501 bool key_added_;
503 }; 502 };
504 503
505 #endif // TOOLS_GN_FUNCTIONS_H_ 504 #endif // TOOLS_GN_FUNCTIONS_H_
OLDNEW
« no previous file with comments | « tools/gn/filesystem_utils.h ('k') | tools/gn/header_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698