Lines Matching defs:prop
71 static std::pair<ValidationInfo, bool> ValidateProperty(Property *prop, bool &foundProto)
73 ValidationInfo info = prop->ValidateExpression();
74 if (prop->Kind() == PropertyKind::PROTO) {
76 return {{"Duplicate __proto__ fields are not allowed in object literals", prop->Key()->Start()}, true};
109 auto *prop = it->AsProperty();
111 std::tie(info, ret) = ValidateProperty(prop, foundProto);
282 auto *prop = (*it)->AsProperty();
284 if (prop->IsComputed()) {
288 varbinder::LocalVariable *foundVar = desc->FindProperty(prop->Key()->AsIdentifier()->Name());
292 if (prop->IsShorthand()) {
293 switch (prop->Value()->Type()) {
295 const ir::Identifier *ident = prop->Value()->AsIdentifier();
301 auto *assignmentPattern = prop->Value()->AsAssignmentPattern();
313 switch (prop->Value()->Type()) {
315 bindingVar = prop->Value()->AsIdentifier()->Variable();
319 patternParamType = prop->Value()->AsArrayPattern()->CheckPattern(checker);
323 patternParamType = prop->Value()->AsObjectPattern()->CheckPattern(checker);
327 isOptional = CheckAssignmentPattern(prop, bindingVar, patternParamType, checker, foundVar);
345 checker->Allocator(), prop->Key()->AsIdentifier()->Name(), varbinder::VariableFlags::PROPERTY, *it);
360 bool ObjectExpression::CheckAssignmentPattern(Property *prop, varbinder::Variable *&bindingVar,
364 auto *assignmentPattern = prop->Value()->AsAssignmentPattern();