Home
last modified time | relevance | path

Searched refs:is_optional (Results 1 – 23 of 23) sorted by relevance

/external/libtextclassifier/native/utils/grammar/utils/
Drules.h68 explicit RhsElement(const std::string& terminal, const bool is_optional) in RhsElement()
69 : is_terminal(true), terminal(terminal), is_optional(is_optional) {} in RhsElement()
70 explicit RhsElement(const int nonterminal, const bool is_optional) in RhsElement()
73 is_optional(is_optional) {} in RhsElement()
77 bool is_optional; member
Drules.cc265 rhs[i].is_optional || !IsNonterminalOfName(rhs[i + 1], kFiller)) { in ResolveFillers()
279 if (rhs[i + 1].is_optional) { in ResolveFillers()
312 if (optimized_rhs[i].is_optional) { in Add()
333 bool is_optional = false; in Add() local
336 is_optional = true; in Add()
341 RhsElement(AddNonterminal(rhs_component.ToString()), is_optional)); in Add()
346 rhs_elements.push_back(RhsElement(rhs_component.ToString(), is_optional)); in Add()
/external/perfetto/src/trace_processor/db/
Dtyped_column_internal.h96 static constexpr bool is_optional = false;
120 static constexpr bool is_optional = true;
150 static constexpr bool is_optional = false;
172 static constexpr bool is_optional = false;
Dtyped_column.h122 return TH::is_optional ? Flag::kNoFlag : Flag::kNonNull; in default_flags()
134 (column->IsNullable() == TH::is_optional) && !column->IsId()) { in FromColumn()
/external/libchrome/components/json_schema/
Djson_schema_validator.cc610 bool is_optional = false; in ValidateObject() local
611 prop_schema->GetBoolean(schema::kOptional, &is_optional); in ValidateObject()
612 if (!is_optional) { in ValidateObject()
733 bool is_optional = false; in ValidateTuple() local
734 item_schema->GetBoolean(schema::kOptional, &is_optional); in ValidateTuple()
735 if (!is_optional) { in ValidateTuple()
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_field.cc119 } else if (params.optional_field_accessors() && field->is_optional() in MakeGenerator()
/external/v8/src/parsing/
Dparser-base.h66 void UpdateArityAndFunctionLength(bool is_optional, bool is_rest) { in UpdateArityAndFunctionLength()
67 if (!is_optional && !is_rest && function_length == arity) { in UpdateArityAndFunctionLength()
3295 bool is_optional = false; in ParseLeftHandSideContinuation() local
3299 if (is_optional) { in ParseLeftHandSideContinuation()
3304 is_optional = true; in ParseLeftHandSideContinuation()
3315 result = factory()->NewProperty(result, index, pos, is_optional); in ParseLeftHandSideContinuation()
3322 if (is_optional) { in ParseLeftHandSideContinuation()
3329 result = factory()->NewProperty(result, key, pos, is_optional); in ParseLeftHandSideContinuation()
3371 CheckPossibleEvalCall(result, is_optional, scope()); in ParseLeftHandSideContinuation()
3375 is_optional); in ParseLeftHandSideContinuation()
[all …]
Dparser.h881 bool is_optional = parameter->initializer() != nullptr;
889 is_optional, parameter->is_rest(), ast_value_factory(),
Dparser.cc59 bool is_optional = false; in DefaultConstructor() local
61 constructor_args_name, VariableMode::kTemporary, is_optional, is_rest, in DefaultConstructor()
/external/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_field.cc84 if (descriptor->is_optional()) field_flags.push_back("GPBFieldOptional"); in SetCommonFieldVariables()
/external/python/cpython3/Tools/clinic/
Dclinic.py651 if not p.is_optional():
657 if not p.is_optional():
662 not converters[0].is_optional() and
858 if has_optional or p.is_optional():
938 if not p.is_optional():
2274 def is_optional(self): member in Parameter
2485 def is_optional(self): member in CConverter
2528 if self.is_optional() and '|' not in data.format_units:
4776 if p.converter.is_optional():
/external/u-boot/tools/buildman/
Dkconfiglib.py1628 not sym.choice.is_optional and \
3165 node.item.is_optional = True
5061 val = 0 if self.is_optional else 1
5196 if self.is_optional:
5256 self.is_constant = self.is_optional = False
5272 if not self.is_optional:
5278 return (0, 1) if self.is_optional else (1,)
5717 if sc.__class__ is Choice and sc.is_optional:
/external/tensorflow/tensorflow/core/framework/
Dop_def.proto81 // TODO(josh11b): bool is_optional?
/external/protobuf/src/google/protobuf/
Ddescriptor.h623 bool is_optional() const; // shorthand for label() == LABEL_OPTIONAL
2063 inline bool FieldDescriptor::is_optional() const { in is_optional() function
Dtest_util.h1166 if (!field->is_optional() || in SetAllocatedOptionalMessageFieldsToNullViaReflection()
1186 if (!field->is_optional() || in SetAllocatedOptionalMessageFieldsToMessageViaReflection()
Ddescriptor.cc1539 extension->is_optional() && extension->message_type() == type) { in FindExtensionByPrintableName()
2686 if (is_optional() && (print_label_flag == OMIT_LABEL || in DebugString()
5991 if (!field->is_optional() || in ValidateFieldOptions()
6970 extension->is_optional() && in FindExtension()
7253 type() == FieldDescriptor::TYPE_MESSAGE && is_optional() && in PrintableNameForExtension()
Ddescriptor_unittest.cc984 EXPECT_FALSE(foo_->is_optional()); in TEST_F()
988 EXPECT_TRUE(bar_->is_optional()); in TEST_F()
992 EXPECT_FALSE(baz_->is_optional()); in TEST_F()
/external/python/cpython2/Lib/plat-mac/
Dgensuitemodule.py728 opt_arg = (has_arg and is_optional(accepts))
1150 def is_optional(data): function
/external/elfutils/libdw/
Dknown-dwarf.h102 DWARF_ONE_KNOWN_DW_AT (is_optional, DW_AT_is_optional) \
/external/v8/src/ast/
Dscopes.h979 bool is_optional, bool is_rest,
Dscopes.cc893 bool is_optional, bool is_rest, in DeclareParameter() argument
899 DCHECK(!is_optional || !is_rest); in DeclareParameter()
/external/protobuf/src/google/protobuf/compiler/js/
Djs_generator.cc978 field->is_optional()) { in ReturnsNullWhenUnset()
1309 : (field->is_optional() ? "optional" : "required"); in FieldDefinition()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/BinaryFormat/
DDwarf.def215 HANDLE_DW_AT(0x21, is_optional, 2, DWARF)