/third_party/PyYAML/tests/lib/ |
H A D | test_yaml_ext.py | 2 import yaml._yaml, yaml namespace 5 yaml.PyBaseLoader = yaml.BaseLoader 6 yaml.PySafeLoader = yaml.SafeLoader 7 yaml.PyLoader = yaml.Loader 8 yaml.PyBaseDumper = yaml [all...] |
H A D | canonical.py | 2 import yaml, yaml.composer, yaml.constructor, yaml.resolver namespace 4 class CanonicalError(yaml.YAMLError): 50 self.tokens.append(yaml.StreamStartToken(None, None)) 55 self.tokens.append(yaml.StreamEndToken(None, None)) 61 self.tokens.append(yaml.DocumentStartToken(None, None)) 64 self.tokens.append(yaml.FlowSequenceStartToken(None, None)) 67 self.tokens.append(yaml [all...] |
H A D | test_tokens.py | 2 import yaml namespace 25 yaml.DirectiveToken: '%', 26 yaml.DocumentStartToken: '---', 27 yaml.DocumentEndToken: '...', 28 yaml.AliasToken: '*', 29 yaml.AnchorToken: '&', 30 yaml.TagToken: '!', 31 yaml.ScalarToken: '_', 32 yaml.BlockSequenceStartToken: '[[', 33 yaml [all...] |
H A D | test_emitter.py | 2 import yaml namespace 8 if isinstance(event1, yaml.NodeEvent): 10 if isinstance(event1, yaml.CollectionStartEvent): 12 if isinstance(event1, yaml.ScalarEvent): 19 events = list(yaml.parse(file)) 20 output = yaml.emit(events) 24 new_events = list(yaml.parse(output)) 31 events = list(yaml.parse(file)) 33 output = yaml.emit(events, canonical=canonical) 37 new_events = list(yaml [all...] |
H A D | test_resolver.py | 2 import yaml namespace 12 node = yaml.compose(file) 13 assert isinstance(node, yaml.SequenceNode), node 15 assert isinstance(scalar, yaml.ScalarNode), scalar 29 class MyLoader(yaml.Loader): 31 class MyDumper(yaml.Dumper): 34 yaml.add_path_resolver('!root', [], 36 yaml.add_path_resolver('!root/scalar', [], str, 38 yaml.add_path_resolver('!root/key11/key12/*', ['key11', 'key12'], 40 yaml [all...] |
H A D | test_errors.py | 2 import yaml, test_emitter namespace 7 list(yaml.load_all(file, yaml.FullLoader)) 8 except yaml.YAMLError as exc: 19 list(yaml.load_all(file.read(), yaml.FullLoader)) 20 except yaml.YAMLError as exc: 31 yaml.load(file.read(), yaml.FullLoader) 32 except yaml 57 import yaml global() namespace [all...] |
H A D | test_structure.py | 2 import yaml, canonical namespace 6 if loader.check_event(yaml.ScalarEvent): 12 elif loader.check_event(yaml.SequenceStartEvent): 15 while not loader.check_event(yaml.SequenceEndEvent): 19 elif loader.check_event(yaml.MappingStartEvent): 22 while not loader.check_event(yaml.MappingEndEvent): 28 elif loader.check_event(yaml.AliasEvent): 41 loader = yaml.Loader(file) 44 yaml.StreamStartEvent, yaml [all...] |
H A D | test_input_output.py | 2 import yaml namespace 9 output = yaml.full_load(data) 11 output = yaml.full_load(io.StringIO(data)) 19 output = yaml.full_load(input) 21 output = yaml.full_load(io.BytesIO(input)) 35 yaml.full_load(input) 36 except yaml.YAMLError as exc: 42 yaml.full_load(io.BytesIO(input)) 43 except yaml.YAMLError as exc: 56 data1 = yaml [all...] |
H A D | test_sort_keys.py | 1 import yaml namespace 10 data = yaml.load(input, Loader=yaml.FullLoader) 11 dump_sorted = yaml.dump(data, default_flow_style=False, sort_keys=True) 12 dump_unsorted = yaml.dump(data, default_flow_style=False, sort_keys=False) 13 dump_unsorted_safe = yaml.dump(data, default_flow_style=False, sort_keys=False, Dumper=yaml.SafeDumper)
|
H A D | test_dump_load.py | 1 import yaml namespace 4 assert yaml.dump(['foo']) 9 yaml.load("- foo\n") 16 assert yaml.load("- foo\n", Loader=yaml.SafeLoader)
|
H A D | test_canonical.py | 2 import yaml, canonical namespace 7 tokens = list(yaml.canonical_scan(data)) 18 events = list(yaml.canonical_parse(data)) 30 output = list(yaml.canonical_load_all(data)) 31 except yaml.YAMLError as exc:
|
H A D | test_schema.py | 1 import yaml namespace 52 # https://github.com/perlpunk/yaml-test-schema/blob/master/data/schema-yaml11.yaml 63 skipdata = yaml.load(file, Loader=yaml.SafeLoader) 69 tests = yaml.load(file, Loader=yaml.SafeLoader) 87 loaded = yaml.safe_load(input) 123 dump = yaml.safe_dump(loaded, explicit_end=False)
|
/third_party/node/deps/v8/third_party/test262-harness/test/ |
H A D | test_monkeyYaml.py | 9 import yaml namespace 21 self.assertEqual(monkeyYaml.load(""), yaml.load("")) 24 self.assertEqual(monkeyYaml.load("\n"), yaml.load("\n")) 28 self.assertEqual(monkeyYaml.load(y), yaml.load(y)) 32 self.assertEqual(monkeyYaml.load(y), yaml.load(y)) 36 self.assertEqual(monkeyYaml.load(y), yaml.load(y)) 40 self.assertEqual(monkeyYaml.load(y), yaml.load(y)) 48 self.assertEqual(value, yaml.load(y)) 55 self.assertEqual(value, yaml.load(y)) 62 self.assertEqual(value, yaml [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ObjectYAML/ |
H A D | ELFYAML.h | 75 llvm::yaml::Hex8 ABIVersion; 79 llvm::yaml::Hex64 Entry; 81 Optional<llvm::yaml::Hex16> SHEntSize; 82 Optional<llvm::yaml::Hex64> SHOff; 83 Optional<llvm::yaml::Hex16> SHNum; 84 Optional<llvm::yaml::Hex16> SHStrNdx; 94 llvm::yaml::Hex64 VAddr; 95 llvm::yaml::Hex64 PAddr; 96 Optional<llvm::yaml::Hex64> Align; 97 Optional<llvm::yaml 529 namespace yaml { global() namespace [all...] |
H A D | MachOYAML.h | 33 llvm::yaml::Hex64 addr; 35 llvm::yaml::Hex32 offset; 37 llvm::yaml::Hex32 reloff; 39 llvm::yaml::Hex32 flags; 40 llvm::yaml::Hex32 reserved1; 41 llvm::yaml::Hex32 reserved2; 42 llvm::yaml::Hex32 reserved3; 43 Optional<llvm::yaml::BinaryRef> content; 47 llvm::yaml::Hex32 magic; 48 llvm::yaml 159 namespace yaml { global() namespace [all...] |
H A D | XCOFFYAML.h | 23 llvm::yaml::Hex16 Magic; 26 llvm::yaml::Hex32 SymbolTableOffset; // File offset to symbol table. 29 llvm::yaml::Hex16 Flags; 34 llvm::yaml::Hex32 Value; // Symbol value; storage class-dependent. 36 llvm::yaml::Hex16 Type; 50 namespace yaml { namespace 68 } // namespace yaml
|
/third_party/PyYAML/packaging/build/ |
H A D | smoketest.py | 2 import yaml namespace 7 if not getattr(yaml, '_yaml', None): 8 raise Exception('C extension is not available at `yaml._yaml`') 10 print('embedded libyaml version is {0}'.format(yaml._yaml.get_version_string())) 12 for loader, dumper in [(yaml.CLoader, yaml.CDumper), (yaml.Loader, yaml.Dumper)]: 14 loaded = yaml.load(testyaml, Loader=loader) 15 dumped = yaml [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
H A D | SymbolRewriter.cpp | 269 yaml::Stream YS(MapFile->getBuffer(), SM); in parse() 272 yaml::MappingNode *DescriptorList; in parse() 275 if (isa<yaml::NullNode>(Document.getRoot())) in parse() 278 DescriptorList = dyn_cast<yaml::MappingNode>(Document.getRoot()); in parse() 292 bool RewriteMapParser::parseEntry(yaml::Stream &YS, yaml::KeyValueNode &Entry, in parseEntry() 294 yaml::ScalarNode *Key; in parseEntry() 295 yaml::MappingNode *Value; in parseEntry() 299 Key = dyn_cast<yaml::ScalarNode>(Entry.getKey()); in parseEntry() 305 Value = dyn_cast<yaml in parseEntry() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Remarks/ |
H A D | YAMLRemarkParser.h | 35 YAMLParseError(StringRef Message, SourceMgr &SM, yaml::Stream &Stream, 36 yaml::Node &Node); 58 /// Stream for yaml parsing. 59 yaml::Stream Stream; 61 yaml::document_iterator YAMLIt; 81 Error error(StringRef Message, yaml::Node &Node); 83 Expected<std::unique_ptr<Remark>> parseRemark(yaml::Document &Remark); 85 Expected<Type> parseType(yaml::MappingNode &Node); 87 Expected<StringRef> parseKey(yaml::KeyValueNode &Node); 89 virtual Expected<StringRef> parseStr(yaml [all...] |
H A D | YAMLRemarkParser.cpp | 37 yaml::Stream &Stream, yaml::Node &Node) { in YAMLParseError() 178 Error YAMLRemarkParser::error(StringRef Message, yaml::Node &Node) { in error() 191 YAMLRemarkParser::parseRemark(yaml::Document &RemarkEntry) { in parseRemark() 195 yaml::Node *YAMLRoot = RemarkEntry.getRoot(); in parseRemark() 201 auto *Root = dyn_cast<yaml::MappingNode>(YAMLRoot); in parseRemark() 217 for (yaml::KeyValueNode &RemarkField : *Root) { in parseRemark() 249 auto *Args = dyn_cast<yaml::SequenceNode>(RemarkField.getValue()); in parseRemark() 253 for (yaml::Node &Arg : *Args) { in parseRemark() 273 Expected<Type> YAMLRemarkParser::parseType(yaml [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
H A D | SymbolRewriter.h | 46 namespace yaml { namespace 53 } // end namespace yaml 100 bool parseEntry(yaml::Stream &Stream, yaml::KeyValueNode &Entry, 102 bool parseRewriteFunctionDescriptor(yaml::Stream &Stream, 103 yaml::ScalarNode *Key, 104 yaml::MappingNode *Value, 106 bool parseRewriteGlobalVariableDescriptor(yaml::Stream &Stream, 107 yaml::ScalarNode *Key, 108 yaml [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
H A D | YAML.cpp | 22 void yaml::ScalarTraits<yaml::BinaryRef>::output( in output() 23 const yaml::BinaryRef &Val, void *, raw_ostream &Out) { in output() 27 StringRef yaml::ScalarTraits<yaml::BinaryRef>::input(StringRef Scalar, void *, in input() 28 yaml::BinaryRef &Val) { in input() 36 Val = yaml::BinaryRef(Scalar); in input() 40 void yaml::BinaryRef::writeAsBinary(raw_ostream &OS, uint64_t N) const { in writeAsBinary() 55 void yaml::BinaryRef::writeAsHex(raw_ostream &OS) const { in writeAsHex()
|
H A D | MinidumpYAML.cpp | 16 /// Perform an optional yaml-mapping of an endian-aware type EndianType. The 20 static inline void mapOptional(yaml::IO &IO, const char *Key, EndianType &Val, in mapOptional() 27 static inline void mapRequiredAs(yaml::IO &IO, const char *Key, in mapRequiredAs() 34 /// Perform an optional yaml-mapping of an endian-aware type EndianType as some 37 static inline void mapOptionalAs(yaml::IO &IO, const char *Key, EndianType &Val, in mapOptionalAs() 45 /// Return the appropriate yaml Hex type for a given endian-aware type. 47 template <> struct HexType<support::ulittle16_t> { using type = yaml::Hex16; }; 48 template <> struct HexType<support::ulittle32_t> { using type = yaml::Hex32; }; 49 template <> struct HexType<support::ulittle64_t> { using type = yaml::Hex64; }; 54 static inline void mapRequiredHex(yaml 178 namespace yaml { global() namespace 215 namespace yaml { global() namespace [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
H A D | MIRYamlMapping.h | 30 namespace yaml { namespace 55 reinterpret_cast<yaml::Input *>(Ctx)->getCurrentNode()) in input() 119 reinterpret_cast<yaml::Input *>(Ctx)->getCurrentNode()) in input() 130 static void enumeration(yaml::IO &IO, in enumeration() 145 } // end namespace yaml 148 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::yaml::StringValue) 149 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(llvm::yaml::FlowStringValue) 150 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(llvm::yaml::UnsignedValue) 153 namespace yaml { namespace 237 static void enumeration(yaml 398 namespace yaml { global() namespace 470 namespace yaml { global() namespace [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
H A D | MIRPrinter.cpp | 122 void convert(yaml::MachineFunction &MF, const MachineRegisterInfo &RegInfo, 124 void convert(ModuleSlotTracker &MST, yaml::MachineFrameInfo &YamlMFI, 126 void convert(yaml::MachineFunction &MF, 128 void convert(ModuleSlotTracker &MST, yaml::MachineJumpTable &YamlJTI, 130 void convertStackObjects(yaml::MachineFunction &YMF, 132 void convertCallSiteObjects(yaml::MachineFunction &YMF, 172 namespace yaml { namespace 186 } // end namespace yaml 189 static void printRegMIR(unsigned Reg, yaml::StringValue &Dest, in printRegMIR() 198 yaml in print() [all...] |