Home
last modified time | relevance | path

Searched refs:ParseNode (Results 1 – 25 of 73) sorted by relevance

123

/third_party/gn/src/gn/
Dparser.h28 static std::unique_ptr<ParseNode> Parse(const std::vector<Token>& tokens,
32 static std::unique_ptr<ParseNode> ParseExpression(
37 static std::unique_ptr<ParseNode> ParseValue(const std::vector<Token>& tokens,
45 std::unique_ptr<ParseNode> ParseExpression();
48 std::unique_ptr<ParseNode> ParseExpression(int precedence);
51 std::unique_ptr<ParseNode> Block(const Token& token);
52 std::unique_ptr<ParseNode> Literal(const Token& token);
53 std::unique_ptr<ParseNode> Name(const Token& token);
54 std::unique_ptr<ParseNode> Group(const Token& token);
55 std::unique_ptr<ParseNode> Not(const Token& token);
[all …]
Dparser.cc315 std::unique_ptr<ParseNode> Parser::Parse(const std::vector<Token>& tokens, in Parse()
322 std::unique_ptr<ParseNode> Parser::ParseExpression( in ParseExpression()
326 std::unique_ptr<ParseNode> expr = p.ParseExpression(); in ParseExpression()
335 std::unique_ptr<ParseNode> Parser::ParseValue(const std::vector<Token>& tokens, in ParseValue()
356 bool Parser::IsAssignment(const ParseNode* node) const { in IsAssignment()
425 std::unique_ptr<ParseNode> Parser::ParseExpression() { in ParseExpression()
429 std::unique_ptr<ParseNode> Parser::ParseExpression(int precedence) { in ParseExpression()
431 return std::unique_ptr<ParseNode>(); in ParseExpression()
438 return std::unique_ptr<ParseNode>(); in ParseExpression()
441 std::unique_ptr<ParseNode> left = (this->*prefix)(token); in ParseExpression()
[all …]
Dparse_tree.h78 class ParseNode {
80 ParseNode();
81 virtual ~ParseNode();
112 static std::unique_ptr<ParseNode> BuildFromJSON(const base::Value& value);
128 ParseNode(const ParseNode&) = delete;
129 ParseNode& operator=(const ParseNode&) = delete;
157 class AccessorNode : public ParseNode {
177 const ParseNode* subscript() const { return subscript_.get(); } in subscript()
178 void set_subscript(std::unique_ptr<ParseNode> key) { in set_subscript()
218 std::unique_ptr<ParseNode> subscript_;
[all …]
Dvalue.h16 class ParseNode; variable
32 Value(const ParseNode* origin, Type t);
33 Value(const ParseNode* origin, bool bool_val);
34 Value(const ParseNode* origin, int64_t int_val);
35 Value(const ParseNode* origin, std::string str_val);
36 Value(const ParseNode* origin, const char* str_val);
42 Value(const ParseNode* origin, std::unique_ptr<Scope> scope);
57 const ParseNode* origin() const { return origin_; } in origin()
58 void set_origin(const ParseNode* o) { origin_ = o; } in set_origin()
125 const ParseNode* origin_ = nullptr;
Dparse_tree.cc76 bool IsSortRangeSeparator(const ParseNode* node, const ParseNode* prev) { in IsSortRangeSeparator()
86 std::string_view GetStringRepresentation(const ParseNode* node) { in GetStringRepresentation()
117 void GetCommentsFromJSON(ParseNode* node, const base::Value& value) { in GetCommentsFromJSON()
170 ParseNode::ParseNode() = default;
172 ParseNode::~ParseNode() = default;
174 const AccessorNode* ParseNode::AsAccessor() const { in AsAccessor()
177 const BinaryOpNode* ParseNode::AsBinaryOp() const { in AsBinaryOp()
180 const BlockCommentNode* ParseNode::AsBlockComment() const { in AsBlockComment()
183 const BlockNode* ParseNode::AsBlock() const { in AsBlock()
186 const ConditionNode* ParseNode::AsCondition() const { in AsCondition()
[all …]
Dinput_file_manager.h26 class ParseNode; variable
41 using FileLoadCallback = std::function<void(const ParseNode*)>;
66 const ParseNode* SyncLoadFile(const LocationRange& origin,
89 std::unique_ptr<ParseNode>** parse_root);
135 std::unique_ptr<ParseNode> parsed_root;
Dsubstitution_pattern.h15 class ParseNode; variable
45 bool Parse(const std::string& str, const ParseNode* origin, Err* err);
72 const ParseNode* origin() const { return origin_; } in origin()
76 const ParseNode* origin_;
Ditem.h16 class ParseNode; variable
38 const ParseNode* defined_from() const { return defined_from_; } in defined_from()
39 void set_defined_from(const ParseNode* df) { defined_from_ = df; } in set_defined_from()
80 const ParseNode* defined_from_;
Doperators.h10 class ParseNode; variable
21 const ParseNode* left,
22 const ParseNode* right,
Dbuilder_record.h15 class ParseNode; variable
43 const ParseNode* originally_referenced_from);
64 const ParseNode* originally_referenced_from() const { in originally_referenced_from()
111 const ParseNode* originally_referenced_from_ = nullptr;
Dparse_node_value_adapter.h10 class ParseNode; variable
37 bool Init(Scope* scope, const ParseNode* node, Err* err);
41 const ParseNode* node,
Dvalue.cc17 Value::Value(const ParseNode* origin, Type t) : type_(t), origin_(origin) { in Value()
39 Value::Value(const ParseNode* origin, bool bool_val) in Value()
42 Value::Value(const ParseNode* origin, int64_t int_val) in Value()
45 Value::Value(const ParseNode* origin, std::string str_val) in Value()
48 Value::Value(const ParseNode* origin, const char* str_val) in Value()
51 Value::Value(const ParseNode* origin, std::unique_ptr<Scope> scope) in Value()
Dloader.h78 std::function<void(const ParseNode*)>,
137 const ParseNode* root);
140 const ParseNode* root);
162 std::function<void(const ParseNode*)> callback,
Dcommand_format.cc124 void Block(const ParseNode* file);
155 void PrintSuffixComments(const ParseNode* node);
181 bool ShouldAddBlankLineInBetween(const ParseNode* a, const ParseNode* b);
199 int Expr(const ParseNode* root, int outer_prec, const std::string& suffix);
213 const ParseNode* end,
226 const ParseNode* end);
353 void Printer::PrintSuffixComments(const ParseNode* node) { in PrintSuffixComments()
513 int SuffixCommentTreeWalk(const ParseNode* node) { in SuffixCommentTreeWalk()
580 int FindLowestSuffixComment(const ParseNode* root) { in FindLowestSuffixComment()
589 bool Printer::ShouldAddBlankLineInBetween(const ParseNode* a, in ShouldAddBlankLineInBetween()
[all …]
Doperators.cc26 const ParseNode* dest,
44 Value* GetExistingMutableValueIfExists(const ParseNode* origin);
47 Value* SetValue(Value value, const ParseNode* set_node);
75 const ParseNode* dest, in Init()
161 const ParseNode* origin) { in GetExistingMutableValueIfExists()
176 Value* ValueDestination::SetValue(Value value, const ParseNode* set_node) { in SetValue()
242 const ParseNode* node, in GetValueOrFillError()
589 const ParseNode* left_node, in ExecuteOr()
590 const ParseNode* right_node, in ExecuteOr()
619 const ParseNode* left_node, in ExecuteAnd()
[all …]
Dinput_conversion.cc38 const ParseNode* origin, in ParseValueOrScope()
44 std::unique_ptr<ParseNode>* parse_root_ptr; in ParseValueOrScope()
72 ParseNode* parse_root = parse_root_ptr->get(); // For nicer syntax below. in ParseValueOrScope()
93 Value ParseList(const std::string& input, const ParseNode* origin, Err* err) { in ParseList()
122 const ParseNode* origin, in ParseJSONValue()
177 const ParseNode* origin, in ParseJSON()
181 std::unique_ptr<ParseNode>* parse_root_ptr; in ParseJSON()
205 const ParseNode* origin, in DoConvertInputToValue()
Dmetadata.h36 const ParseNode* origin() const { return origin_; } in origin()
37 void set_origin(const ParseNode* origin) { origin_ = origin; } in set_origin()
63 const ParseNode* origin_ = nullptr;
Dinput_file_manager.cc33 const ParseNode* node) { in InvokeFileLoadCallback()
43 std::unique_ptr<ParseNode>* root, in DoLoadFile()
171 const ParseNode* InputFileManager::SyncLoadFile( in SyncLoadFile()
251 std::unique_ptr<ParseNode>** parse_root) { in AddDynamicInput()
292 std::unique_ptr<ParseNode> root; in LoadFile()
300 ParseNode* unowned_root = root.get(); in LoadFile()
Dinput_conversion.h11 class ParseNode; variable
26 const ParseNode* origin,
Dsetup.h23 class ParseNode; variable
190 std::unique_ptr<ParseNode> dotfile_root_;
208 std::unique_ptr<ParseNode> args_root_;
Dbuilder.h21 class ParseNode; variable
78 const ParseNode* request_from,
88 const ParseNode* request_from,
Dimport_manager.h16 class ParseNode; variable
30 const ParseNode* node_for_err,
Dtool.h18 class ParseNode; variable
71 const ParseNode* defined_from() const { return defined_from_; } in defined_from()
72 void set_defined_from(const ParseNode* df) { defined_from_ = df; } in set_defined_from()
232 static std::unique_ptr<Tool> CreateTool(const ParseNode* function,
273 const ParseNode* defined_from_ = nullptr;
Dparse_node_value_adapter.cc15 const ParseNode* node, in Init()
32 const ParseNode* node, in InitForType()
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/RealWorld/
Dparserindenter.ts47 …public GetIndentationEdits(token: TokenSpan, nextToken: TokenSpan, node: ParseNode, sameLineIndent…
67 …public GetIndentationEditsWorker(token: TokenSpan, nextToken: TokenSpan, node: ParseNode, sameLine…
207 private GetSpecialCaseIndentation(token: TokenSpan, node: ParseNode): IndentationInfo {
246 private GetSpecialCaseIndentationForLCurly(node: ParseNode): IndentationInfo {
265 …private GetSpecialCaseIndentationForSemicolon(token: TokenSpan, node: ParseNode): IndentationInfo {
288 … private GetSpecialCaseIndentationForComment(token: TokenSpan, node: ParseNode): IndentationInfo {
308 private CanIndentComment(token: TokenSpan, node: ParseNode): boolean {
477 … private ApplyIndentationDeltaFromParent(token: TokenSpan, node: ParseNode): IndentationInfo {
574 var indentNode: ParseNode = null;
596 var parent: ParseNode;
[all …]

123