Home
last modified time | relevance | path

Searched full:shape (Results 1 – 25 of 1582) sorted by relevance

12345678910>>...64

/third_party/typescript/tests/baselines/reference/
DtypeGuardNarrowsIndexedAccessOfKnownProperty1.types30 type Shape = Square | Rectangle | Circle;
31 >Shape : Square | Rectangle | Circle
35 >"0" : { sub: { under: { shape: Shape; };}; }
38 >sub : { under: { shape: Shape;}; }
41 >under : { shape: Shape; }
43 shape: Shape;
44 >shape : Shape
49 function area(s: Shape): number {
50 >area : (s: Shape) => number
51 >s : Shape
[all …]
DmappedTypes2.types85 interface Shape {
127 function f0(s1: Shape, s2: Shape) {
128 >f0 : (s1: Shape, s2: Shape) => void
129 >s1 : Shape
130 >s2 : Shape
135 >s1 : Shape
143 >s2 : Shape
151 function f1(shape: Shape) {
152 >f1 : (shape: Shape) => void
153 >shape : Shape
[all …]
DmappedTypes2.js37 interface Shape {
58 function f0(s1: Shape, s2: Shape) { argument
63 function f1(shape: Shape) { argument
65 var frozen: Readonly<Shape>;
66 var frozen = freeze(shape);
69 function f2(shape: Shape) { argument
71 var partial: Partial<Shape>;
72 var partial: Partial<Shape> = {};
75 function f3(shape: Shape) { argument
76 const x = pick(shape, "name", "location"); // { name: string, location: Point }
[all …]
DstaticInterfaceAssignmentCompat.types2 class Shape {
3 >Shape : Shape
5 static create(): Shape {
6 >create : () => Shape
8 return new Shape();
9 >new Shape() : Shape
10 >Shape : typeof Shape
15 create(): Shape;
16 >create : () => Shape
19 var x: ShapeFactory = Shape;
[all …]
DmappedTypes2.symbols163 interface Shape {
164 >Shape : Symbol(Shape, Decl(mappedTypes2.ts, 33, 1))
167 >name : Symbol(Shape.name, Decl(mappedTypes2.ts, 35, 17))
170 >width : Symbol(Shape.width, Decl(mappedTypes2.ts, 36, 17))
173 >height : Symbol(Shape.height, Decl(mappedTypes2.ts, 37, 18))
176 >location : Symbol(Shape.location, Decl(mappedTypes2.ts, 38, 19))
214 function f0(s1: Shape, s2: Shape) {
217 >Shape : Symbol(Shape, Decl(mappedTypes2.ts, 33, 1))
219 >Shape : Symbol(Shape, Decl(mappedTypes2.ts, 33, 1))
233 function f1(shape: Shape) {
[all …]
DstaticInterfaceAssignmentCompat.symbols2 class Shape {
3 >Shape : Symbol(Shape, Decl(staticInterfaceAssignmentCompat.ts, 0, 0))
5 static create(): Shape {
6 >create : Symbol(Shape.create, Decl(staticInterfaceAssignmentCompat.ts, 0, 13))
7 >Shape : Symbol(Shape, Decl(staticInterfaceAssignmentCompat.ts, 0, 0))
9 return new Shape();
10 >Shape : Symbol(Shape, Decl(staticInterfaceAssignmentCompat.ts, 0, 0))
17 create(): Shape;
19 >Shape : Symbol(Shape, Decl(staticInterfaceAssignmentCompat.ts, 0, 0))
22 var x: ShapeFactory = Shape;
[all …]
DkeyofAndIndexedAccessErrors.js2 class Shape { class
20 type T10 = Shape["name"];
21 type T11 = Shape["foo"]; // Error
22 type T12 = Shape["name" | "foo"]; // Error
23 type T13 = Shape[any]; // Error
24 type T14 = Shape[string]; // Error
25 type T15 = Shape[number]; // Error
26 type T16 = Shape[boolean]; // Error
27 type T17 = Shape[void]; // Error
28 type T18 = Shape[undefined]; // Error
[all …]
DkeyofAndIndexedAccessErrors.types2 class Shape {
3 >Shape : Shape
43 type T10 = Shape["name"];
46 type T11 = Shape["foo"]; // Error
49 type T12 = Shape["name" | "foo"]; // Error
52 type T13 = Shape[any]; // Error
55 type T14 = Shape[string]; // Error
58 type T15 = Shape[number]; // Error
61 type T16 = Shape[boolean]; // Error
64 type T17 = Shape[void]; // Error
[all …]
DtypeGuardNarrowsIndexedAccessOfKnownProperty1.js15 type Shape = Square | Rectangle | Circle;
20 shape: Shape;
25 function area(s: Shape): number {
33 switch(s[0]["sub"].under["shape"]["dash-ok"]) {
34 … case "square": return s[0].sub.under.shape["square-size"] * s[0].sub.under.shape["square-size"];
35 …case "rectangle": return s[0]["sub"]["under"]["shape"]["width"] * s[0]["sub"]["under"]["shape"].he…
36 …case "circle": return Math.PI * s[0].sub.under["shape"].radius * s[0]["sub"].under.shape["radius"];
95 switch (s[0]["sub"].under["shape"]["dash-ok"]) {
96 … case "square": return s[0].sub.under.shape["square-size"] * s[0].sub.under.shape["square-size"];
97 …case "rectangle": return s[0]["sub"]["under"]["shape"]["width"] * s[0]["sub"]["under"]["shape"].he…
[all …]
DstaticInterfaceAssignmentCompat.js2 class Shape { class
3 static create(): Shape { field in Shape
4 return new Shape();
9 create(): Shape;
12 var x: ShapeFactory = Shape;
16 var Shape = /** @class */ (function () {
17 function Shape() { class in Shape
19 Shape.create = function () {
20 return new Shape();
22 return Shape;
[all …]
DkeyofAndIndexedAccessErrors.symbols2 class Shape {
3 >Shape : Symbol(Shape, Decl(keyofAndIndexedAccessErrors.ts, 0, 0))
6 >name : Symbol(Shape.name, Decl(keyofAndIndexedAccessErrors.ts, 0, 13))
9 >width : Symbol(Shape.width, Decl(keyofAndIndexedAccessErrors.ts, 1, 17))
12 >height : Symbol(Shape.height, Decl(keyofAndIndexedAccessErrors.ts, 2, 18))
15 >visible : Symbol(Shape.visible, Decl(keyofAndIndexedAccessErrors.ts, 3, 19))
52 type T10 = Shape["name"];
54 >Shape : Symbol(Shape, Decl(keyofAndIndexedAccessErrors.ts, 0, 0))
56 type T11 = Shape["foo"]; // Error
58 >Shape : Symbol(Shape, Decl(keyofAndIndexedAccessErrors.ts, 0, 0))
[all …]
DclodulesDerivedClasses.types2 class Shape {
3 >Shape : Shape
9 module Shape.Utils {
10 >Shape : typeof Shape
13 export function convert(): Shape { return null;}
14 >convert : () => Shape
18 class Path extends Shape {
20 >Shape : Shape
/third_party/python/Lib/test/
Dtest_buffer.py264 def strides_from_shape(ndim, shape, itemsize, layout): argument
270 strides = list(shape[1:]) + [itemsize]
274 strides = [itemsize] + list(shape[:-1])
281 multidimensional C array with shape 's'."""
295 multidimensional Fortran array with shape 's'."""
306 def carray(items, shape): argument
307 if listp(items) and not 0 in shape and prod(shape) != len(items):
308 raise ValueError("prod(shape) != len(items)")
309 return _ca(items, shape)
311 def farray(items, shape): argument
[all …]
/third_party/skia/third_party/externals/harfbuzz/src/
DMakefile.sources44 hb-fallback-shape.cc \
112 hb-ot-shape-complex-arabic-fallback.hh \
113 hb-ot-shape-complex-arabic-joining-list.hh \
114 hb-ot-shape-complex-arabic-table.hh \
115 hb-ot-shape-complex-arabic-win1256.hh \
116 hb-ot-shape-complex-arabic.cc \
117 hb-ot-shape-complex-arabic.hh \
118 hb-ot-shape-complex-default.cc \
119 hb-ot-shape-complex-hangul.cc \
120 hb-ot-shape-complex-hebrew.cc \
[all …]
Dharfbuzz.cc9 #include "hb-fallback-shape.cc"
25 #include "hb-ot-shape-complex-arabic.cc"
26 #include "hb-ot-shape-complex-default.cc"
27 #include "hb-ot-shape-complex-hangul.cc"
28 #include "hb-ot-shape-complex-hebrew.cc"
29 #include "hb-ot-shape-complex-indic-table.cc"
30 #include "hb-ot-shape-complex-indic.cc"
31 #include "hb-ot-shape-complex-khmer.cc"
32 #include "hb-ot-shape-complex-myanmar.cc"
33 #include "hb-ot-shape-complex-syllabic.cc"
[all …]
/third_party/skia/experimental/graphite/src/geom/
DShape.h23 * Shape is effectively a std::variant over different geometric shapes, with the most complex
27 class Shape {
34 Shape() {} in Shape() function
35 Shape(const Shape& shape) { *this = shape; } in Shape() function
36 Shape(Shape&&) = delete;
38 Shape(SkPoint p0, SkPoint p1) { this->setLine(p0, p1); } in Shape() function
39 Shape(SkV2 p0, SkV2 p1) { this->setLine(p0, p1); } in Shape() function
40 Shape(float2 p0, float2 p1) { this->setLine(p0, p1); } in Shape() function
41 explicit Shape(const Rect& rect) { this->setRect(rect); } in Shape() function
42 explicit Shape(const SkRect& rect) { this->setRect(rect); } in Shape() function
[all …]
DShape.cpp8 #include "experimental/graphite/src/geom/Shape.h"
16 Shape& Shape::operator=(const Shape& shape) { in operator =() argument
17 switch (shape.type()) { in operator =()
19 case Type::kLine: this->setLine(shape.p0(), shape.p1()); break; in operator =()
20 case Type::kRect: this->setRect(shape.rect()); break; in operator =()
21 case Type::kRRect: this->setRRect(shape.rrect()); break; in operator =()
22 case Type::kPath: this->setPath(shape.path()); break; in operator =()
25 fInverted = shape.fInverted; in operator =()
29 bool Shape::conservativeContains(const Rect& rect) const { in conservativeContains()
40 bool Shape::conservativeContains(float2 point) const { in conservativeContains()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroSplit.cpp97 coro::Shape &Shape; member in __anonffab7e910111::CoroCloner
109 CoroCloner(Function &OrigF, const Twine &Suffix, coro::Shape &Shape, in CoroCloner() argument
111 : OrigF(OrigF), NewF(nullptr), Suffix(Suffix), Shape(Shape), in CoroCloner()
113 assert(Shape.ABI == coro::ABI::Switch); in CoroCloner()
117 CoroCloner(Function &OrigF, const Twine &Suffix, coro::Shape &Shape, in CoroCloner() argument
119 : OrigF(OrigF), NewF(NewF), Suffix(Suffix), Shape(Shape), in CoroCloner()
122 assert(Shape.ABI == coro::ABI::Retcon || in CoroCloner()
123 Shape.ABI == coro::ABI::RetconOnce); in CoroCloner()
162 const coro::Shape &Shape, Value *FramePtr, in maybeFreeRetconStorage() argument
164 assert(Shape.ABI == coro::ABI::Retcon || in maybeFreeRetconStorage()
[all …]
/third_party/typescript/tests/cases/conformance/types/mapped/
DmappedTypes2.ts39 interface Shape { interface
60 function f0(s1: Shape, s2: Shape) {
65 function f1(shape: Shape) {
67 var frozen: Readonly<Shape>;
68 var frozen = freeze(shape);
71 function f2(shape: Shape) {
73 var partial: Partial<Shape>;
74 var partial: Partial<Shape> = {};
77 function f3(shape: Shape) {
78 const x = pick(shape, "name", "location"); // { name: string, location: Point }
[all …]
/third_party/node/deps/v8/src/objects/
Dhash-table-inl.h24 template <typename Derived, typename Shape> in OBJECT_CONSTRUCTORS_IMPL()
25 HashTable<Derived, Shape>::HashTable(Address ptr) : HashTableBase(ptr) { in OBJECT_CONSTRUCTORS_IMPL()
29 template <typename Derived, typename Shape>
30 ObjectHashTableBase<Derived, Shape>::ObjectHashTableBase(Address ptr) in ObjectHashTableBase()
31 : HashTable<Derived, Shape>(ptr) {} in ObjectHashTableBase()
134 template <typename Derived, typename Shape>
135 Handle<Map> HashTable<Derived, Shape>::GetMap(ReadOnlyRoots roots) { in GetMap()
154 template <typename Derived, typename Shape>
156 InternalIndex HashTable<Derived, Shape>::FindEntry(IsolateT* isolate, Key key) { in FindEntry()
158 return FindEntry(isolate, roots, key, Shape::Hash(roots, key)); in FindEntry()
[all …]
Ddictionary-inl.h28 template <typename Derived, typename Shape> in CAST_ACCESSOR()
29 Dictionary<Derived, Shape>::Dictionary(Address ptr) in CAST_ACCESSOR()
30 : HashTable<Derived, Shape>(ptr) {} in CAST_ACCESSOR()
32 template <typename Derived, typename Shape>
33 Object Dictionary<Derived, Shape>::ValueAt(InternalIndex entry) { in ValueAt()
38 template <typename Derived, typename Shape>
39 Object Dictionary<Derived, Shape>::ValueAt(PtrComprCageBase cage_base, in ValueAt()
45 template <typename Derived, typename Shape>
46 base::Optional<Object> Dictionary<Derived, Shape>::TryValueAt( in TryValueAt()
63 template <typename Derived, typename Shape>
[all …]
/third_party/skia/experimental/sorttoy/
Dsorttoy.cpp88 static void save_files(int testID, Shape s, const SkBitmap& expected, const SkBitmap& actual) { in save_files()
95 SkString path = SkOSPath::Join(dir, s == Shape::kRect ? "rect-expected" : "oval-expected"); in save_files()
106 path = SkOSPath::Join(dir, s == Shape::kRect ? "rect-actual" : "oval-actual"); in save_files()
183 s.clip(sk_make_sp<ClipCmd>(ID(1), Shape::kRect, r)); in mcstack_test()
191 s.clip(sk_make_sp<ClipCmd>(ID(2), Shape::kRect, r)); in mcstack_test()
197 s.clip(sk_make_sp<ClipCmd>(ID(3), Shape::kRect, r)); in mcstack_test()
243 Shape shape,
248 for (Shape s : { Shape::kRect, Shape::kOval }) { in sort_test()
280 Shape shape, in test1() argument
290 … test->push_back(sk_make_sp<DrawCmd>(ID(0), shape, r.makeOffset(8, 8), FakePaint(SK_ColorRED))); in test1()
[all …]
/third_party/skia/third_party/harfbuzz/
DBUILD.gn49 "$_src/hb-ot-shape.h",
53 "$_src/hb-shape-plan.h",
54 "$_src/hb-shape.h",
180 "$_src/hb-ot-shape-complex-arabic-fallback.hh",
181 "$_src/hb-ot-shape-complex-arabic-joining-list.hh",
182 "$_src/hb-ot-shape-complex-arabic-table.hh",
183 "$_src/hb-ot-shape-complex-arabic.cc",
184 "$_src/hb-ot-shape-complex-arabic.hh",
185 "$_src/hb-ot-shape-complex-default.cc",
186 "$_src/hb-ot-shape-complex-hangul.cc",
[all …]
/third_party/typescript/tests/cases/conformance/types/keyof/
DkeyofAndIndexedAccessErrors.ts1 class Shape { class
19 type T10 = Shape["name"];
20 type T11 = Shape["foo"]; // Error
21 type T12 = Shape["name" | "foo"]; // Error
22 type T13 = Shape[any]; // Error
23 type T14 = Shape[string]; // Error
24 type T15 = Shape[number]; // Error
25 type T16 = Shape[boolean]; // Error
26 type T17 = Shape[void]; // Error
27 type T18 = Shape[undefined]; // Error
[all …]
/third_party/skia/src/gpu/geometry/
DGrStyledShape.h23 * Represents a geometric shape (rrect or path) and the GrStyle that it should be rendered with.
26 * the path effect from the style. In this case the resulting shape will include any remaining
30 * when styling information is applied to produce a new shape then the style has been converted
31 * to geometric information and is included in the new shape's key. When the same style is applied
114 * Informs MakeFilled on how to modify that shape's fill rule when making a simple filled
115 * version of the shape.
124 * Makes a filled shape from the pre-styled original shape and optionally modifies whether
125 * the fill is inverted or not. It's important to note that the original shape's geometry
127 * (e.g. filled paths are always closed when stored in a shape and dashed paths are always
135 // True if the shape and/or style were modified into a simpler, equivalent pairing
[all …]

12345678910>>...64