/third_party/parse5/packages/parse5/lib/parser/ |
D | open-element-stack.test.ts | 17 function createElement(tagName: string, namespaceURI = NS.HTML): TreeAdapterTypeMap['element'] { function 18 return treeAdapter.createElement(tagName, namespaceURI, []); 23 const element1 = createElement('#element1', NS.XLINK); 24 const element2 = createElement('#element2', NS.SVG); 40 const element = createElement('#element', NS.XLINK); 44 stack.push(createElement('#element2', NS.XML), $.UNKNOWN); 56 const element = createElement('#element', NS.MATHML); 57 const newElement = createElement('#newElement', NS.SVG); 60 stack.push(createElement('#element2', NS.XML), $.UNKNOWN); 68 const element1 = createElement('#element1', NS.XLINK); [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | overloadingOnConstants1.symbols | 24 createElement(tagName: 'canvas'): Derived1; 25 >createElement : Symbol(Document2.createElement, Decl(overloadingOnConstants1.ts, 5, 21), Decl(over… 29 createElement(tagName: 'div'): Derived2; 30 >createElement : Symbol(Document2.createElement, Decl(overloadingOnConstants1.ts, 5, 21), Decl(over… 34 createElement(tagName: 'span'): Derived3; 35 >createElement : Symbol(Document2.createElement, Decl(overloadingOnConstants1.ts, 5, 21), Decl(over… 39 createElement(tagName: string): Base; 40 >createElement : Symbol(Document2.createElement, Decl(overloadingOnConstants1.ts, 5, 21), Decl(over… 50 var htmlElement: Base = d2.createElement("yo") 53 >d2.createElement : Symbol(Document2.createElement, Decl(overloadingOnConstants1.ts, 5, 21), Decl(o… [all …]
|
D | overloadingOnConstants1.types | 22 createElement(tagName: 'canvas'): Derived1; 23 >createElement : { (tagName: 'canvas'): Derived1; (tagName: "div"): Derived2; (tagName: "span"): De… 26 createElement(tagName: 'div'): Derived2; 27 >createElement : { (tagName: "canvas"): Derived1; (tagName: 'div'): Derived2; (tagName: "span"): De… 30 createElement(tagName: 'span'): Derived3; 31 >createElement : { (tagName: "canvas"): Derived1; (tagName: "div"): Derived2; (tagName: 'span'): De… 34 createElement(tagName: string): Base; 35 >createElement : { (tagName: "canvas"): Derived1; (tagName: "div"): Derived2; (tagName: "span"): De… 43 var htmlElement: Base = d2.createElement("yo") 45 >d2.createElement("yo") : Base [all …]
|
D | overloadingOnConstants1.js | 8 createElement(tagName: 'canvas'): Derived1; 9 createElement(tagName: 'div'): Derived2; 10 createElement(tagName: 'span'): Derived3; 11 createElement(tagName: string): Base; 17 var htmlElement: Base = d2.createElement("yo") 18 var htmlCanvasElement: Derived1 = d2.createElement("canvas"); 19 var htmlDivElement: Derived2 = d2.createElement("div"); 20 var htmlSpanElement: Derived3 = d2.createElement("span"); 23 var htmlElement2: Derived1 = d2.createElement("yo") 24 var htmlCanvasElement2: Derived3 = d2.createElement("canvas"); [all …]
|
D | jsxNamespacePrefixInNameReact.js | 46 var justElement1 = React.createElement("a:element", null); 47 var justElement2 = React.createElement("a:element", null); 48 var justElement3 = React.createElement("a:element", { attr: "value" }); 49 var justElement4 = React.createElement("a:element", null, "text"); 50 var justElement5 = React.createElement("a:element", { attr: "value" }, "text"); 51 var tooManySeparators1 = React.createElement("a:ele", { ment: true }); 52 var tooManySeparators2 = React.createElement("a:ele", { ment: true }), ment; 54 var tooManySeparators3 = React.createElement("a:ele", { ment: true, attr: "value" }), ment; 56 var tooManySeparators4 = React.createElement("a:ele", { ment: true }, "text"), ment; 58 var tooManySeparators5 = React.createElement("a:ele", { ment: true, attr: "value" }, "text"), ment; [all …]
|
D | overloadOnConstConstraintChecks1.symbols | 24 createElement(tagName: string): Base; 25 >createElement : Symbol(MyDoc.createElement, Decl(overloadOnConstConstraintChecks1.ts, 5, 17), Decl… 29 createElement(tagName: 'canvas'): Derived1; 30 >createElement : Symbol(MyDoc.createElement, Decl(overloadOnConstConstraintChecks1.ts, 5, 17), Decl… 34 createElement(tagName: 'div'): Derived2; 35 >createElement : Symbol(MyDoc.createElement, Decl(overloadOnConstConstraintChecks1.ts, 5, 17), Decl… 39 createElement(tagName: 'span'): Derived3; 40 >createElement : Symbol(MyDoc.createElement, Decl(overloadOnConstConstraintChecks1.ts, 5, 17), Decl… 51 createElement(tagName:string): Base; 52 >createElement : Symbol(D.createElement, Decl(overloadOnConstConstraintChecks1.ts, 13, 26), Decl(ov… [all …]
|
D | tsxReactEmit1.js | 55 var selfClosed1 = React.createElement("div", null); 56 var selfClosed2 = React.createElement("div", { x: "1" }); 57 var selfClosed3 = React.createElement("div", { x: '1' }); 58 var selfClosed4 = React.createElement("div", { x: "1", y: '0' }); 59 var selfClosed5 = React.createElement("div", { x: 0, y: '0' }); 60 var selfClosed6 = React.createElement("div", { x: "1", y: '0' }); 61 var selfClosed7 = React.createElement("div", { x: p, y: 'p', b: true }); 62 var openClosed1 = React.createElement("div", null); 63 var openClosed2 = React.createElement("div", { n: 'm' }, "foo"); 64 var openClosed3 = React.createElement("div", { n: 'm' }, p); [all …]
|
D | tsxFragmentReactEmit.js | 19 React.createElement(React.Fragment, null); // no whitespace 20 React.createElement(React.Fragment, null); // lots of whitespace 21 React.createElement(React.Fragment, null); // comments in the tags 22 React.createElement(React.Fragment, null, "hi"); // text inside 23 React.createElement(React.Fragment, null, 24 React.createElement("span", null, "hi"), 25 React.createElement("div", null, "bye")); // children 26 React.createElement(React.Fragment, null, 27 React.createElement("span", null, "1"), 28 React.createElement(React.Fragment, null, [all …]
|
D | jsxFactoryIdentifier.js | 21 export function createElement(args: any[]) { 28 export let createElement = Element.createElement; 36 let createElement = Element.createElement; variable 56 exports.createElement = exports.Element = void 0; 63 function createElement(args) { function 66 Element.createElement = createElement; 68 exports.createElement = Element.createElement; 77 let createElement = Element_1.Element.createElement; 82 createElement("meta", { content: "helloworld" }), 83 createElement("meta", { content: c.a.b })
|
D | overloadOnConstConstraintChecks1.types | 22 createElement(tagName: string): Base; 23 >createElement : { (tagName: string): Base; (tagName: "canvas"): Derived1; (tagName: "div"): Derive… 26 createElement(tagName: 'canvas'): Derived1; 27 >createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: "div"): Derive… 30 createElement(tagName: 'div'): Derived2; 31 >createElement : { (tagName: string): Base; (tagName: "canvas"): Derived1; (tagName: 'div'): Derive… 34 createElement(tagName: 'span'): Derived3; 35 >createElement : { (tagName: string): Base; (tagName: "canvas"): Derived1; (tagName: "div"): Derive… 44 createElement(tagName:string): Base; 45 >createElement : { (tagName: string): Base; (tagName: "canvas"): Derived1; (tagName: "div"): Derive… [all …]
|
D | jsxIntrinsicElementsTypeArgumentErrors.js | 38 var a = React.createElement("div", null); // empty type args 39 var b = React.createElement("div", null); // trailing comma type args 40 var c = React.createElement("div", null); // nonexistant type args 41 var d = React.createElement("div", null); // nested missing type args 42 var e = React.createElement("div", null); // existing but incorrect nested type args 43 var f = React.createElement("div", null); // existing type argument with no internal issues 45 var g = React.createElement("div", null); // empty type args 46 var h = React.createElement("div", null); // trailing comma type args 47 var i = React.createElement("div", null); // nonexistant type args 48 var j = React.createElement("div", null); // nested missing type args [all …]
|
D | tsxReactEmitNesting.js | 40 return vdom.createElement("section", { "class": "todoapp" }, 41 vdom.createElement("header", { "class": "header" }, 42 vdom.createElement("h1", null, "todos <x>"), 43 …vdom.createElement("input", { "class": "new-todo", autofocus: true, autocomplete: "off", placehold… 44 …vdom.createElement("section", { "class": "main", style: { display: (model.todos && model.todos.len… 45 …vdom.createElement("input", { "class": "toggle-all", type: "checkbox", onChange: ctrl.toggleAll.bi… 46 … vdom.createElement("ul", { "class": "todo-list" }, model.filteredTodos.map(function (todo) { 47 …return vdom.createElement("li", { "class": { todo: true, completed: todo.completed, editing: todo … 48 vdom.createElement("div", { "class": "view" }, 50 vdom.createElement("input", { "class": "toggle", type: "checkbox" }) [all …]
|
D | tsxReactEmitWhitespace.js | 72 React.createElement("div", null, " "); 74 React.createElement("div", null, 79 React.createElement("div", null, p); 81 React.createElement("div", null, p); 83 React.createElement("div", null, " 3"); 85 React.createElement("div", null, " 3 "); 87 React.createElement("div", null, "3"); 89 React.createElement("div", null); 91 React.createElement("div", null, "foo bar"); 93 React.createElement("div", null, "hello\\ world"); [all …]
|
D | jsxFactoryIdentifier.symbols | 51 export function createElement(args: any[]) { 52 >createElement : Symbol(createElement, Decl(Element.ts, 15, 5)) 60 export let createElement = Element.createElement; 61 >createElement : Symbol(createElement, Decl(Element.ts, 24, 10)) 62 >Element.createElement : Symbol(Element.createElement, Decl(Element.ts, 15, 5)) 64 >createElement : Symbol(Element.createElement, Decl(Element.ts, 15, 5)) 83 let createElement = Element.createElement; 84 >createElement : Symbol(createElement, Decl(test.tsx, 1, 3)) 85 >Element.createElement : Symbol(Element.createElement, Decl(Element.ts, 15, 5)) 87 >createElement : Symbol(Element.createElement, Decl(Element.ts, 15, 5))
|
D | jsxFactoryAndReactNamespace.js | 21 export function createElement(args: any[]) { 28 export let createElement = Element.createElement; 55 exports.createElement = exports.Element = void 0; 62 function createElement(args) { function 65 Element.createElement = createElement; 67 exports.createElement = Element.createElement; 79 Element_1.Element.createElement("meta", { content: "helloworld" }), 80 Element_1.Element.createElement("meta", { content: c.a.b })
|
D | jsxFactoryNotIdentifierOrQualifiedName.js | 21 export function createElement(args: any[]) { 28 export let createElement = Element.createElement; 55 exports.createElement = exports.Element = void 0; 62 function createElement(args) { function 65 Element.createElement = createElement; 67 exports.createElement = Element.createElement; 78 React.createElement("meta", { content: "helloworld" }), 79 React.createElement("meta", { content: c.a.b })
|
D | jsxFactoryQualifiedName.js | 21 export function createElement(args: any[]) { 28 export let createElement = Element.createElement; 55 exports.createElement = exports.Element = void 0; 62 function createElement(args) { function 65 Element.createElement = createElement; 67 exports.createElement = Element.createElement; 80 Element_1.Element.createElement("meta", { content: "helloworld" }), 81 Element_1.Element.createElement("meta", { content: c.a.b })
|
D | jsxEmitWithAttributes.js | 21 export function createElement(args: any[]) { 28 export let createElement = Element.createElement; 55 exports.createElement = exports.Element = void 0; 62 function createElement(args) { function 65 Element.createElement = createElement; 67 exports.createElement = Element.createElement; 79 Element_1.Element.createElement("meta", { content: "helloworld" }), 80 Element_1.Element.createElement("meta", { content: c.a.b })
|
D | jsxFactoryNotIdentifierOrQualifiedName2.js | 21 export function createElement(args: any[]) { 28 export let createElement = Element.createElement; 55 exports.createElement = exports.Element = void 0; 62 function createElement(args) { function 65 Element.createElement = createElement; 67 exports.createElement = Element.createElement; 78 React.createElement("meta", { content: "helloworld" }), 79 React.createElement("meta", { content: c.a.b })
|
D | jsxAttributeInitializer(jsx=react).js | 13 React.createElement("div", null, 14 React.createElement("div", { attr: React.createElement("div", null) }), 15 React.createElement("div", { attr: React.createElement("div", null, "foo") }), 16 React.createElement("div", { attr: React.createElement(React.Fragment, null, 17 React.createElement("div", null, "foo")) }), 18 React.createElement("div", { attr: true }));
|
/third_party/node/deps/v8/tools/turbolizer/src/ |
D | sequence-view.ts | 6 import { createElement } from "../src/util"; 23 const pane = document.createElement('div'); 135 const container = createElement("div", ""); 147 const span = createElement("span", className, operand.text); 155 const span = createElement("span", "parameter tag clickable virtual-reg", text); 160 const instNodeEl = createElement("div", "instruction-node"); 162 const instId = createElement("div", "instruction-id", instruction.id); 173 const instContentsEl = createElement("div", "instruction-contents"); 177 const gapEl = createElement("div", "gap", "gap"); 180 const moves = createElement("div", "comma-sep-list gap-move"); [all …]
|
D | schedule-view.ts | 13 const pane = document.createElement('div'); 49 const div = document.createElement('div'); 56 function createElement(tag: string, cls: string, content?: string) { 57 const el = document.createElement(tag); 88 const nodeEl = createElement("div", "node"); 92 const instrMarker = createElement("div", "instr-marker com", marker); 97 const nodeId = createElement("div", "node-id tag clickable", node.id); 101 const nodeLabel = createElement("div", "node-label", node.label); 104 const nodeParameters = createElement("div", "parameter-list comma-sep-list"); 106 const paramEl = createElement("div", "parameter tag clickable", param); [all …]
|
/third_party/typescript/tests/cases/compiler/ |
D | overloadingOnConstants1.ts | 7 createElement(tagName: 'canvas'): Derived1; method 8 createElement(tagName: 'div'): Derived2; method 9 createElement(tagName: 'span'): Derived3; method 10 createElement(tagName: string): Base; method 16 var htmlElement: Base = d2.createElement("yo") 17 var htmlCanvasElement: Derived1 = d2.createElement("canvas"); 18 var htmlDivElement: Derived2 = d2.createElement("div"); 19 var htmlSpanElement: Derived3 = d2.createElement("span"); 22 var htmlElement2: Derived1 = d2.createElement("yo") 23 var htmlCanvasElement2: Derived3 = d2.createElement("canvas"); [all …]
|
D | overloadOnConstConstraintChecks1.ts | 7 createElement(tagName: string): Base; method 8 createElement(tagName: 'canvas'): Derived1; method 9 createElement(tagName: 'div'): Derived2; method 10 createElement(tagName: 'span'): Derived3; method 15 createElement(tagName:string): Base; method in D 16 createElement(tagName: 'canvas'): Derived1; 17 createElement(tagName: 'div'): Derived2; 18 createElement(tagName: 'span'): Derived3; 19 createElement(tagName:any): Base {
|
/third_party/typescript/tests/issues_cookbook_tests/pages/cookbook/ |
D | 5.52.ets | 2 createElement(tagName: any): Element 6 createElement(tagName: string): HTMLElement 10 createElement(tagName: number): HTMLDivElement 11 createElement(tagName: boolean): HTMLSpanElement 12 createElement(tagName: string, value: number): HTMLCanvasElement 17 createElement(tagName: number): HTMLDivElement 18 createElement(tagName: boolean): HTMLSpanElement 19 createElement(tagName: string, value: number): HTMLCanvasElement 20 createElement(tagName: string): HTMLElement 21 createElement(tagName: Object): Element
|