/third_party/typescript/tests/baselines/reference/ |
D | overloadingOnConstants1.types | 22 createElement(tagName: 'canvas'): Derived1; 23 >createElement : { (tagName: 'canvas'): Derived1; (tagName: "div"): Derived2; (tagName: "span"): De… 24 >tagName : "canvas" 26 createElement(tagName: 'div'): Derived2; 27 >createElement : { (tagName: "canvas"): Derived1; (tagName: 'div'): Derived2; (tagName: "span"): De… 28 >tagName : "div" 30 createElement(tagName: 'span'): Derived3; 31 >createElement : { (tagName: "canvas"): Derived1; (tagName: "div"): Derived2; (tagName: 'span'): De… 32 >tagName : "span" 34 createElement(tagName: string): Base; [all …]
|
D | overloadOnConstConstraintChecks1.types | 22 createElement(tagName: string): Base; 23 >createElement : { (tagName: string): Base; (tagName: "canvas"): Derived1; (tagName: "div"): Derive… 24 >tagName : string 26 createElement(tagName: 'canvas'): Derived1; 27 >createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: "div"): Derive… 28 >tagName : "canvas" 30 createElement(tagName: 'div'): Derived2; 31 >createElement : { (tagName: string): Base; (tagName: "canvas"): Derived1; (tagName: 'div'): Derive… 32 >tagName : "div" 34 createElement(tagName: 'span'): Derived3; [all …]
|
D | parserOverloadOnConstants1.types | 3 createElement(tagName: string): HTMLElement; 4 …tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; <K extends keyof HTMLElem… 5 >tagName : string 7 createElement(tagName: 'canvas'): HTMLCanvasElement; 8 …tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; <K extends keyof HTMLElem… 9 >tagName : "canvas" 11 createElement(tagName: 'div'): HTMLDivElement; 12 …tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; <K extends keyof HTMLElem… 13 >tagName : "div" 15 createElement(tagName: 'span'): HTMLSpanElement; [all …]
|
D | constantOverloadFunctionNoSubtypeError.types | 21 function foo(tagName: 'canvas'): Derived3; 22 >foo : { (tagName: 'canvas'): Derived3; (tagName: "div"): Derived2; (tagName: "span"): Derived1; (t… 23 >tagName : "canvas" 25 function foo(tagName: 'div'): Derived2; 26 >foo : { (tagName: "canvas"): Derived3; (tagName: 'div'): Derived2; (tagName: "span"): Derived1; (t… 27 >tagName : "div" 29 function foo(tagName: 'span'): Derived1; 30 >foo : { (tagName: "canvas"): Derived3; (tagName: "div"): Derived2; (tagName: 'span'): Derived1; (t… 31 >tagName : "span" 33 function foo(tagName: number): Base; [all …]
|
D | constantOverloadFunction.types | 21 function foo(tagName: 'canvas'): Derived1; 22 >foo : { (tagName: 'canvas'): Derived1; (tagName: "div"): Derived2; (tagName: "span"): Derived3; (t… 23 >tagName : "canvas" 25 function foo(tagName: 'div'): Derived2; 26 >foo : { (tagName: "canvas"): Derived1; (tagName: 'div'): Derived2; (tagName: "span"): Derived3; (t… 27 >tagName : "div" 29 function foo(tagName: 'span'): Derived3; 30 >foo : { (tagName: "canvas"): Derived1; (tagName: "div"): Derived2; (tagName: 'span'): Derived3; (t… 31 >tagName : "span" 33 function foo(tagName: string): Base; [all …]
|
D | specializedOverloadWithRestParameters.types | 11 function f(tagName: 'span', ...args): Derived1; // error 12 >f : { (tagName: 'span', ...args: any[]): Derived1; (tagName: number, ...args: any[]): Base; } 13 >tagName : "span" 16 function f(tagName: number, ...args): Base; 17 >f : { (tagName: "span", ...args: any[]): Derived1; (tagName: number, ...args: any[]): Base; } 18 >tagName : number 21 function f(tagName: any): Base { 22 >f : { (tagName: "span", ...args: any[]): Derived1; (tagName: number, ...args: any[]): Base; } 23 >tagName : any 28 function g(tagName: 'span', arg): Derived1; // error [all …]
|
D | overloadOnConstConstraintChecks1.symbols | 24 createElement(tagName: string): Base; 26 >tagName : Symbol(tagName, Decl(overloadOnConstConstraintChecks1.ts, 6, 18)) 29 createElement(tagName: 'canvas'): Derived1; 31 >tagName : Symbol(tagName, Decl(overloadOnConstConstraintChecks1.ts, 7, 18)) 34 createElement(tagName: 'div'): Derived2; 36 >tagName : Symbol(tagName, Decl(overloadOnConstConstraintChecks1.ts, 8, 18)) 39 createElement(tagName: 'span'): Derived3; 41 >tagName : Symbol(tagName, Decl(overloadOnConstConstraintChecks1.ts, 9, 18)) 51 createElement(tagName:string): Base; 53 >tagName : Symbol(tagName, Decl(overloadOnConstConstraintChecks1.ts, 14, 18)) [all …]
|
D | specializedOverloadWithRestParameters.symbols | 11 function f(tagName: 'span', ...args): Derived1; // error 13 >tagName : Symbol(tagName, Decl(specializedOverloadWithRestParameters.ts, 2, 11)) 17 function f(tagName: number, ...args): Base; 19 >tagName : Symbol(tagName, Decl(specializedOverloadWithRestParameters.ts, 3, 11)) 23 function f(tagName: any): Base { 25 >tagName : Symbol(tagName, Decl(specializedOverloadWithRestParameters.ts, 4, 11)) 30 function g(tagName: 'span', arg): Derived1; // error 32 >tagName : Symbol(tagName, Decl(specializedOverloadWithRestParameters.ts, 7, 11)) 36 function g(tagName: number, arg): Base; 38 >tagName : Symbol(tagName, Decl(specializedOverloadWithRestParameters.ts, 8, 11)) [all …]
|
D | constantOverloadFunctionNoSubtypeError.symbols | 21 function foo(tagName: 'canvas'): Derived3; 23 >tagName : Symbol(tagName, Decl(constantOverloadFunctionNoSubtypeError.ts, 5, 13)) 26 function foo(tagName: 'div'): Derived2; 28 >tagName : Symbol(tagName, Decl(constantOverloadFunctionNoSubtypeError.ts, 6, 13)) 31 function foo(tagName: 'span'): Derived1; 33 >tagName : Symbol(tagName, Decl(constantOverloadFunctionNoSubtypeError.ts, 7, 13)) 36 function foo(tagName: number): Base; 38 >tagName : Symbol(tagName, Decl(constantOverloadFunctionNoSubtypeError.ts, 8, 13)) 41 function foo(tagName: any): Base { 43 >tagName : Symbol(tagName, Decl(constantOverloadFunctionNoSubtypeError.ts, 9, 13))
|
D | constantOverloadFunction.symbols | 21 function foo(tagName: 'canvas'): Derived1; 23 >tagName : Symbol(tagName, Decl(constantOverloadFunction.ts, 5, 13)) 26 function foo(tagName: 'div'): Derived2; 28 >tagName : Symbol(tagName, Decl(constantOverloadFunction.ts, 6, 13)) 31 function foo(tagName: 'span'): Derived3; 33 >tagName : Symbol(tagName, Decl(constantOverloadFunction.ts, 7, 13)) 36 function foo(tagName: string): Base; 38 >tagName : Symbol(tagName, Decl(constantOverloadFunction.ts, 8, 13)) 41 function foo(tagName: any): Base { 43 >tagName : Symbol(tagName, Decl(constantOverloadFunction.ts, 9, 13))
|
D | intersectionsOfLargeUnions.js | 11 U extends ElementTagNameMap[T]>(node: Node | null, tagName: T): node is U { 13 const nodeTagName = node.tagName.toLowerCase(); 14 return nodeTagName === tagName; 22 V extends HTMLElementTagNameMap[T][P]>(node: Node | null, tagName: T, prop: P, value: V) { 23 if (assertNodeTagName(node, tagName)) { 39 function assertNodeTagName(node, tagName) { argument 41 var nodeTagName = node.tagName.toLowerCase(); 42 return nodeTagName === tagName; 47 function assertNodeProperty(node, tagName, prop, value) { argument 48 if (assertNodeTagName(node, tagName)) {
|
D | intersectionsOfLargeUnions2.js | 21 U extends ElementTagNameMap[T]>(node: Node | null, tagName: T): node is U { 23 const nodeTagName = node.tagName.toLowerCase(); 24 return nodeTagName === tagName; 32 V extends HTMLElementTagNameMap[T][P]>(node: Node | null, tagName: T, prop: P, value: V) { 33 if (assertNodeTagName(node, tagName)) { 49 function assertNodeTagName(node, tagName) { argument 51 var nodeTagName = node.tagName.toLowerCase(); 52 return nodeTagName === tagName; 57 function assertNodeProperty(node, tagName, prop, value) { argument 58 if (assertNodeTagName(node, tagName)) {
|
D | intersectionsOfLargeUnions.types | 27 … HTMLElementTagNameMap, U extends ElementTagNameMap[T]>(node: Node | null, tagName: T) => node is U 30 U extends ElementTagNameMap[T]>(node: Node | null, tagName: T): node is U { 33 >tagName : T 40 const nodeTagName = node.tagName.toLowerCase(); 42 >node.tagName.toLowerCase() : string 43 >node.tagName.toLowerCase : () => string 44 >node.tagName : string 46 >tagName : string 49 return nodeTagName === tagName; 50 >nodeTagName === tagName : boolean [all …]
|
D | intersectionsOfLargeUnions2.types | 41 … HTMLElementTagNameMap, U extends ElementTagNameMap[T]>(node: Node | null, tagName: T) => node is U 44 U extends ElementTagNameMap[T]>(node: Node | null, tagName: T): node is U { 47 >tagName : T 54 const nodeTagName = node.tagName.toLowerCase(); 56 >node.tagName.toLowerCase() : string 57 >node.tagName.toLowerCase : () => string 58 >node.tagName : string 60 >tagName : string 63 return nodeTagName === tagName; 64 >nodeTagName === tagName : boolean [all …]
|
D | parserOverloadOnConstants1.symbols | 5 createElement(tagName: string): HTMLElement; 7 >tagName : Symbol(tagName, Decl(parserOverloadOnConstants1.ts, 1, 18)) 10 createElement(tagName: 'canvas'): HTMLCanvasElement; 12 >tagName : Symbol(tagName, Decl(parserOverloadOnConstants1.ts, 2, 18)) 15 createElement(tagName: 'div'): HTMLDivElement; 17 >tagName : Symbol(tagName, Decl(parserOverloadOnConstants1.ts, 3, 18)) 20 createElement(tagName: 'span'): HTMLSpanElement; 22 >tagName : Symbol(tagName, Decl(parserOverloadOnConstants1.ts, 4, 18))
|
D | intersectionsOfLargeUnions.symbols | 29 U extends ElementTagNameMap[T]>(node: Node | null, tagName: T): node is U { 35 >tagName : Symbol(tagName, Decl(intersectionsOfLargeUnions.ts, 9, 54)) 44 const nodeTagName = node.tagName.toLowerCase(); 46 >node.tagName.toLowerCase : Symbol(String.toLowerCase, Decl(lib.es5.d.ts, --, --)) 47 >node.tagName : Symbol(Element.tagName, Decl(lib.dom.d.ts, --, --)) 49 >tagName : Symbol(Element.tagName, Decl(lib.dom.d.ts, --, --)) 52 return nodeTagName === tagName; 54 >tagName : Symbol(tagName, Decl(intersectionsOfLargeUnions.ts, 9, 54)) 71 V extends HTMLElementTagNameMap[T][P]>(node: Node | null, tagName: T, prop: P, value: V) { 78 >tagName : Symbol(tagName, Decl(intersectionsOfLargeUnions.ts, 20, 61)) [all …]
|
D | overloadOnConstConstraintChecks1.js | 8 createElement(tagName: string): Base; 9 createElement(tagName: 'canvas'): Derived1; 10 createElement(tagName: 'div'): Derived2; 11 createElement(tagName: 'span'): Derived3; 16 createElement(tagName:string): Base; 17 createElement(tagName: 'canvas'): Derived1; 18 createElement(tagName: 'div'): Derived2; 19 createElement(tagName: 'span'): Derived3; 20 createElement(tagName:any): Base { 74 D.prototype.createElement = function (tagName) { argument
|
D | intersectionsOfLargeUnions2.symbols | 49 U extends ElementTagNameMap[T]>(node: Node | null, tagName: T): node is U { 55 >tagName : Symbol(tagName, Decl(intersectionsOfLargeUnions2.ts, 19, 54)) 64 const nodeTagName = node.tagName.toLowerCase(); 66 >node.tagName.toLowerCase : Symbol(String.toLowerCase, Decl(lib.es5.d.ts, --, --)) 67 >node.tagName : Symbol(Element.tagName, Decl(lib.dom.d.ts, --, --)) 69 >tagName : Symbol(Element.tagName, Decl(lib.dom.d.ts, --, --)) 72 return nodeTagName === tagName; 74 >tagName : Symbol(tagName, Decl(intersectionsOfLargeUnions2.ts, 19, 54)) 91 V extends HTMLElementTagNameMap[T][P]>(node: Node | null, tagName: T, prop: P, value: V) { 98 >tagName : Symbol(tagName, Decl(intersectionsOfLargeUnions2.ts, 30, 61)) [all …]
|
D | specializedOverloadWithRestParameters.js | 4 function f(tagName: 'span', ...args): Derived1; // error 5 function f(tagName: number, ...args): Base; 6 function f(tagName: any): Base { 9 function g(tagName: 'span', arg): Derived1; // error 10 function g(tagName: number, arg): Base; 11 function g(tagName: any): Base { 45 function f(tagName) { argument 48 function g(tagName) { argument
|
/third_party/googletest/googletest/test/ |
D | gtest_xml_test_utils.py | 70 self.assertEquals(expected_node.tagName, actual_node.tagName) 77 actual_node.tagName, expected_attributes.keys(), 85 (expected_attr.name, actual_node.tagName)) 89 (expected_attr.name, actual_node.tagName, 96 'number of child elements differ in element ' + actual_node.tagName) 100 (child_id, actual_children, actual_node.tagName)) 130 if child.tagName == 'properties': 135 self.assert_(child.tagName in self.identifying_attribute, 136 'Encountered unknown element <%s>' % child.tagName) 138 self.identifying_attribute[child.tagName]) [all …]
|
/third_party/typescript/tests/cases/compiler/ |
D | overloadOnConstConstraintChecks1.ts | 7 createElement(tagName: string): Base; 8 createElement(tagName: 'canvas'): Derived1; 9 createElement(tagName: 'div'): Derived2; 10 createElement(tagName: 'span'): Derived3; 15 createElement(tagName:string): Base; 16 createElement(tagName: 'canvas'): Derived1; 17 createElement(tagName: 'div'): Derived2; 18 createElement(tagName: 'span'): Derived3; 19 createElement(tagName:any): Base {
|
D | specializedOverloadWithRestParameters.ts | 3 function f(tagName: 'span', ...args): Derived1; // error 4 function f(tagName: number, ...args): Base; 5 function f(tagName: any): Base { 8 function g(tagName: 'span', arg): Derived1; // error 9 function g(tagName: number, arg): Base; 10 function g(tagName: any): Base {
|
D | constantOverloadFunction.ts | 6 function foo(tagName: 'canvas'): Derived1; 7 function foo(tagName: 'div'): Derived2; 8 function foo(tagName: 'span'): Derived3; 9 function foo(tagName: string): Base; 10 function foo(tagName: any): Base {
|
D | constantOverloadFunctionNoSubtypeError.ts | 6 function foo(tagName: 'canvas'): Derived3; 7 function foo(tagName: 'div'): Derived2; 8 function foo(tagName: 'span'): Derived1; 9 function foo(tagName: number): Base; 10 function foo(tagName: any): Base {
|
/third_party/python/Lib/test/ |
D | test_pulldom.py | 53 self.assertEqual("html", node.tagName) 65 self.assertEqual("title", node.tagName) 72 self.assertEqual("title", node.tagName) 78 self.assertEqual("hr", node.tagName) 81 self.assertEqual("hr", node.tagName) 86 self.assertEqual("p", node.tagName) 89 self.assertEqual("xdc:author", node.tagName) 94 self.assertEqual("xdc:author", node.tagName) 110 if evt == pulldom.START_ELEMENT and item.tagName == "title": 120 self.assertEqual("hr", node.tagName, [all …]
|