Home
last modified time | relevance | path

Searched refs:literal (Results 1 – 25 of 1845) sorted by relevance

12345678910>>...74

/third_party/boost/libs/safe_numerics/example/
Dmotor3.c48 literal(0x909),
49 literal(0x908),
50 literal(0x808),
51 literal(0x809)
69 CCP1CON = phase & literal(0xff); // set CCP action on next match in update()
70 CCP2CON = phase >> literal(8); in update()
72 CCPR1H = literal(0xff) & (ccpr >> literal(8)); in update()
73 CCPR1L = literal(0xff) & ccpr; in update()
101 c -= literal(2) * c / (literal(4) * i + literal(1)); in isr_motor_step()
120 CCP1IE = literal(0); // disable_interrupts(INT_CCP1); in isr_motor_step()
[all …]
Dexample93.cpp43 #define literal(n) make_safe_literal(n, pic16_promotion, void) macro
47 #define C0 literal(5000 << 8)
51 #define C_MIN literal(25 << 8)
201 constexpr bit & operator=(decltype(literal(1))){
202 m_word |= literal(1 << N);
205 constexpr bit & operator=(decltype(literal(0))){
206 m_word &= ~literal(1 << N);
211 return m_word >> literal(N) & literal(1); in operator safe_bit_t()
244 return (t + literal(128)) / literal(256); in to_microseconds()
287 result &= test(literal(9000)); in main()
[all …]
/third_party/typescript/tests/baselines/reference/
DjsdocLiteral.types3 * @param {'literal'} p1
4 * @param {"literal"} p2
5 * @param {'literal' | 'other'} p3
6 * @param {'literal' | number} p4
10 >f : (p1: 'literal', p2: "literal", p3: 'literal' | 'other', p4: 'literal' | number, p5: 12 | true …
11 >p1 : "literal"
12 >p2 : "literal"
13 >p3 : "literal" | "other"
14 >p4 : number | "literal"
23 >p1 : "literal"
[all …]
DstringLiteralsErrors.errors.txt1 tests/cases/compiler/stringLiteralsErrors.ts(2,18): error TS1002: Unterminated string literal.
2 tests/cases/compiler/stringLiteralsErrors.ts(3,3): error TS1002: Unterminated string literal.
3 tests/cases/compiler/stringLiteralsErrors.ts(4,18): error TS1002: Unterminated string literal.
4 tests/cases/compiler/stringLiteralsErrors.ts(5,3): error TS1002: Unterminated string literal.
5 tests/cases/compiler/stringLiteralsErrors.ts(8,20): error TS1002: Unterminated string literal.
6 tests/cases/compiler/stringLiteralsErrors.ts(9,3): error TS1002: Unterminated string literal.
7 tests/cases/compiler/stringLiteralsErrors.ts(10,20): error TS1002: Unterminated string literal.
8 tests/cases/compiler/stringLiteralsErrors.ts(11,3): error TS1002: Unterminated string literal.
9 tests/cases/compiler/stringLiteralsErrors.ts(14,24): error TS1002: Unterminated string literal.
10 tests/cases/compiler/stringLiteralsErrors.ts(15,24): error TS1002: Unterminated string literal.
[all …]
Dsuper_inside-object-literal-getters-and-setters.symbols1 === tests/cases/compiler/super_inside-object-literal-getters-and-setters.ts ===
3 >ObjectLiteral : Symbol(ObjectLiteral, Decl(super_inside-object-literal-getters-and-setters.ts, 0, …
6 >ThisInObjectLiteral : Symbol(ThisInObjectLiteral, Decl(super_inside-object-literal-getters-and-set…
9 >_foo : Symbol(_foo, Decl(super_inside-object-literal-getters-and-setters.ts, 1, 31))
12 … : Symbol(foo, Decl(super_inside-object-literal-getters-and-setters.ts, 2, 18), Decl(super_inside-…
17 … : Symbol(foo, Decl(super_inside-object-literal-getters-and-setters.ts, 2, 18), Decl(super_inside-…
18 >value : Symbol(value, Decl(super_inside-object-literal-getters-and-setters.ts, 6, 16))
21 >value : Symbol(value, Decl(super_inside-object-literal-getters-and-setters.ts, 6, 16))
25 >test : Symbol(test, Decl(super_inside-object-literal-getters-and-setters.ts, 8, 10))
33 >F : Symbol(F, Decl(super_inside-object-literal-getters-and-setters.ts, 13, 1))
[all …]
DindirectTypeParameterReferences.js10 const literal = (fn: (aPlusB: A & B) => void) => null function
12 return {combined, literal}
15 const {combined, literal} = flowtypes<{a: string}>({b: 'b-value'})
17 literal(aPlusB => {
37 var literal = function (fn) { return null; }; function
38 return { combined: combined, literal: literal };
40 var _a = flowtypes({ b: 'b-value' }), combined = _a.combined, literal = _a.literal;
41 literal(function (aPlusB) {
DsuperInObjectLiterals_ES5.errors.txt1 …_ES5.ts(7,9): error TS2659: 'super' is only allowed in members of object literal expressions when …
2 …ES5.ts(10,9): error TS2659: 'super' is only allowed in members of object literal expressions when …
3 …ES5.ts(14,9): error TS2659: 'super' is only allowed in members of object literal expressions when …
4 …TS2660: 'super' can only be referenced in members of derived classes or object literal expressions.
5 …TS2660: 'super' can only be referenced in members of derived classes or object literal expressions.
6 …TS2660: 'super' can only be referenced in members of derived classes or object literal expressions.
7 …S5.ts(39,17): error TS2659: 'super' is only allowed in members of object literal expressions when …
8 …S5.ts(42,17): error TS2659: 'super' is only allowed in members of object literal expressions when …
9 …S5.ts(46,17): error TS2659: 'super' is only allowed in members of object literal expressions when …
10 …TS2660: 'super' can only be referenced in members of derived classes or object literal expressions.
[all …]
Dthis_inside-object-literal-getters-and-setters.symbols1 === tests/cases/compiler/this_inside-object-literal-getters-and-setters.ts ===
3 >ObjectLiteral : Symbol(ObjectLiteral, Decl(this_inside-object-literal-getters-and-setters.ts, 0, 0…
6 >ThisInObjectLiteral : Symbol(ThisInObjectLiteral, Decl(this_inside-object-literal-getters-and-sett…
9 >_foo : Symbol(_foo, Decl(this_inside-object-literal-getters-and-setters.ts, 1, 31))
12 …oo : Symbol(foo, Decl(this_inside-object-literal-getters-and-setters.ts, 2, 18), Decl(this_inside-…
17 …oo : Symbol(foo, Decl(this_inside-object-literal-getters-and-setters.ts, 2, 18), Decl(this_inside-…
18 >value : Symbol(value, Decl(this_inside-object-literal-getters-and-setters.ts, 6, 16))
21 >value : Symbol(value, Decl(this_inside-object-literal-getters-and-setters.ts, 6, 16))
25 >test : Symbol(test, Decl(this_inside-object-literal-getters-and-setters.ts, 8, 10))
Dsuper_inside-object-literal-getters-and-setters.errors.txt1 tests/cases/compiler/super_inside-object-literal-getters-and-setters.ts(4,13): error TS1056: Access…
2 …ler/super_inside-object-literal-getters-and-setters.ts(5,20): error TS2659: 'super' is only allowe…
3 tests/cases/compiler/super_inside-object-literal-getters-and-setters.ts(7,13): error TS1056: Access…
4 …ler/super_inside-object-literal-getters-and-setters.ts(8,13): error TS2659: 'super' is only allowe…
5 …ide-object-literal-getters-and-setters.ts(11,20): error TS2660: 'super' can only be referenced in …
6 tests/cases/compiler/super_inside-object-literal-getters-and-setters.ts(20,17): error TS1056: Acces…
7 …ler/super_inside-object-literal-getters-and-setters.ts(21,24): error TS2659: 'super' is only allow…
10 ==== tests/cases/compiler/super_inside-object-literal-getters-and-setters.ts (7 errors) ====
19 !!! error TS2659: 'super' is only allowed in members of object literal expressions when option 'tar…
26 !!! error TS2659: 'super' is only allowed in members of object literal expressions when option 'tar…
[all …]
DindirectTypeParameterReferences.types9 >flowtypes : <A>(b: B) => { combined: (fn: (combined: A & B) => void) => any; literal: (fn: (aPlusB…
10literal = (fn: (aPlusB: A & B) => void) => null return {combined, literal}} : <A>(b: B) => { com…
23 const literal = (fn: (aPlusB: A & B) => void) => null
24 >literal : (fn: (aPlusB: A & B) => void) => any
30 return {combined, literal}
31 >{combined, literal} : { combined: (fn: (combined: A & B) => void) => any; literal: (fn: (aPlusB: A…
33 >literal : (fn: (aPlusB: A & B) => void) => any
36 const {combined, literal} = flowtypes<{a: string}>({b: 'b-value'})
38 >literal : (fn: (aPlusB: { a: string; } & B) => void) => any
39 …ue'}) : { combined: (fn: (combined: { a: string; } & B) => void) => any; literal: (fn: (aPlusB: { …
[all …]
DnullishCoalescingOperator3.types2 declare const a1: 'literal' | undefined | null
3 >a1 : "literal" | null | undefined
30 >aa1 : boolean | "" | 0 | "literal" | 1 | "whatever"
31 >a1 ?? a2 ?? a3 ?? a4 ?? a5 ?? a6 ?? 'whatever' : boolean | "" | 0 | "literal" | 1 | "whatever"
32 >a1 ?? a2 ?? a3 ?? a4 ?? a5 ?? a6 : boolean | "" | 0 | "literal" | 1 | null | undefined
33 >a1 ?? a2 ?? a3 ?? a4 ?? a5 : true | "" | 0 | "literal" | 1 | null | undefined
34 >a1 ?? a2 ?? a3 ?? a4 : "" | 0 | "literal" | 1 | null | undefined
35 >a1 ?? a2 ?? a3 : "" | "literal" | 1 | null | undefined
36 >a1 ?? a2 : "" | "literal" | null | undefined
37 >a1 : "literal" | null | undefined
DidentifierStartAfterNumericLiteral.errors.txt1 …teral.ts(1,16): error TS1351: An identifier or keyword cannot immediately follow a numeric literal.
2 …iteral.ts(3,2): error TS1351: An identifier or keyword cannot immediately follow a numeric literal.
4 …iteral.ts(4,4): error TS1351: An identifier or keyword cannot immediately follow a numeric literal.
10 …iteral.ts(7,2): error TS1351: An identifier or keyword cannot immediately follow a numeric literal.
11 …iteral.ts(8,4): error TS1351: An identifier or keyword cannot immediately follow a numeric literal.
12 tests/cases/compiler/identifierStartAfterNumericLiteral.ts(9,1): error TS1352: A bigint literal can…
15 tests/cases/compiler/identifierStartAfterNumericLiteral.ts(10,1): error TS1352: A bigint literal ca…
18 …teral.ts(11,2): error TS1351: An identifier or keyword cannot immediately follow a numeric literal.
20 …teral.ts(12,4): error TS1351: An identifier or keyword cannot immediately follow a numeric literal.
22 …teral.ts(13,4): error TS1351: An identifier or keyword cannot immediately follow a numeric literal.
[all …]
DdeclarationEmitDestructuringObjectLiteralPattern1.errors.txt1 …ionEmitDestructuringObjectLiteralPattern1.ts(1,13): error TS2353: Object literal may only specify …
2 …ionEmitDestructuringObjectLiteralPattern1.ts(1,19): error TS2353: Object literal may only specify …
3 …ionEmitDestructuringObjectLiteralPattern1.ts(2,23): error TS2353: Object literal may only specify …
4 …ionEmitDestructuringObjectLiteralPattern1.ts(3,16): error TS2353: Object literal may only specify …
5 …ionEmitDestructuringObjectLiteralPattern1.ts(5,27): error TS2353: Object literal may only specify …
6 …ionEmitDestructuringObjectLiteralPattern1.ts(6,20): error TS2353: Object literal may only specify …
12 !!! error TS2353: Object literal may only specify known properties, and 'x' does not exist in type …
14 !!! error TS2353: Object literal may only specify known properties, and 'y' does not exist in type …
17 !!! error TS2353: Object literal may only specify known properties, and 'y4' does not exist in type…
20 !!! error TS2353: Object literal may only specify known properties, and 'x5' does not exist in type…
[all …]
DnumericLiteralTypes3.errors.txt1 tests/cases/conformance/types/literal/numericLiteralTypes3.ts(8,5): error TS2322: Type 'B' is not a…
3 tests/cases/conformance/types/literal/numericLiteralTypes3.ts(9,5): error TS2322: Type 'C' is not a…
5 tests/cases/conformance/types/literal/numericLiteralTypes3.ts(10,5): error TS2322: Type 'D' is not …
7 tests/cases/conformance/types/literal/numericLiteralTypes3.ts(14,5): error TS2322: Type '1' is not …
8 tests/cases/conformance/types/literal/numericLiteralTypes3.ts(16,5): error TS2322: Type 'C' is not …
10 tests/cases/conformance/types/literal/numericLiteralTypes3.ts(17,5): error TS2322: Type 'D' is not …
12 tests/cases/conformance/types/literal/numericLiteralTypes3.ts(24,5): error TS2322: Type 'D' is not …
14 tests/cases/conformance/types/literal/numericLiteralTypes3.ts(29,5): error TS2322: Type 'B' is not …
16 tests/cases/conformance/types/literal/numericLiteralTypes3.ts(30,5): error TS2322: Type 'C' is not …
18 tests/cases/conformance/types/literal/numericLiteralTypes3.ts(35,5): error TS2322: Type '0' is not …
[all …]
DtypeUsedAsTypeLiteralIndex.errors.txt1 …ror TS1170: A computed property name in a type literal must refer to an expression whose type is a…
3 …ror TS1170: A computed property name in a type literal must refer to an expression whose type is a…
5 …ror TS1170: A computed property name in a type literal must refer to an expression whose type is a…
7 …ror TS1170: A computed property name in a type literal must refer to an expression whose type is a…
16 …ror TS1170: A computed property name in a type literal must refer to an expression whose type is a…
30 …ror TS1170: A computed property name in a type literal must refer to an expression whose type is a…
39 …ror TS1170: A computed property name in a type literal must refer to an expression whose type is a…
48 …ror TS1170: A computed property name in a type literal must refer to an expression whose type is a…
DdeclarationEmitDestructuringObjectLiteralPattern.errors.txt1 …tionEmitDestructuringObjectLiteralPattern.ts(1,13): error TS2353: Object literal may only specify …
2 …tionEmitDestructuringObjectLiteralPattern.ts(1,19): error TS2353: Object literal may only specify …
3 …tionEmitDestructuringObjectLiteralPattern.ts(2,23): error TS2353: Object literal may only specify …
4 …tionEmitDestructuringObjectLiteralPattern.ts(3,16): error TS2353: Object literal may only specify …
5 …tionEmitDestructuringObjectLiteralPattern.ts(5,27): error TS2353: Object literal may only specify …
6 …tionEmitDestructuringObjectLiteralPattern.ts(6,20): error TS2353: Object literal may only specify …
12 !!! error TS2353: Object literal may only specify known properties, and 'x' does not exist in type …
14 !!! error TS2353: Object literal may only specify known properties, and 'y' does not exist in type …
17 !!! error TS2353: Object literal may only specify known properties, and 'y4' does not exist in type…
20 !!! error TS2353: Object literal may only specify known properties, and 'x5' does not exist in type…
[all …]
DcomputedPropertyNames12_ES6.errors.txt1 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
2 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
3 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
4 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
5 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
6 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
7 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
8 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
18 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
21 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
[all …]
DcomputedPropertyNames12_ES5.errors.txt1 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
2 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
3 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
4 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
5 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
6 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
7 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
8 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
18 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
21 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
[all …]
DdecoratorsOnComputedProperties.errors.txt1 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
2 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
3 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
4 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
5 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
6 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
11 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
14 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
17 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
18 …a class property declaration must refer to an expression whose type is a literal type or a 'unique…
[all …]
/third_party/typescript_eslint/packages/eslint-plugin-internal/src/rules/
Dplugin-test-formatting.ts216 literal: TSESTree.Literal,
220 if (typeof literal.value === 'string') {
221 const output = prettierFormat(literal.value, literal);
222 if (output && output !== literal.value) {
224 node: literal,
232 literal,
242 return fixer.replaceText(literal, `${quote}${output}${quote}`);
250 literal: TSESTree.TemplateLiteral,
254 if (literal.quasis.length > 1) {
259 const text = literal.quasis[0].value.cooked;
[all …]
/third_party/boost/boost/proto/
Dliteral.hpp36 struct literal struct
37 : extends<basic_expr<tag::terminal, term<T>, 0>, literal<T, Domain>, Domain>
41 typedef extends<terminal_type, literal<T, Domain>, Domain> base_type; argument
42 typedef literal<T, Domain> literal_t; argument
49 literal() in literal() argument
54 literal(literal const &) = default;
58 literal(U &u) in literal() argument
63 literal(U const &u) in literal() argument
68 literal(literal<U, Domain> const &u) in literal() function
92 inline literal<T &> const lit(T &t) in lit()
[all …]
/third_party/boost/libs/log/src/
Dnamed_scope_format_parser.cpp485 struct literal
489 explicit literal(string_type& lit) { m_literal.swap(lit); }
644 std::basic_string< char_type > literal;
649 literal.append(begin, p);
656 literal.push_back(static_cast< char_type >('%'));
660 if (!literal.empty())
661 fmt.add_formatter(typename formatter_type::literal(literal));
666 if (!literal.empty())
667 fmt.add_formatter(typename formatter_type::literal(literal));
672 if (!literal.empty())
[all …]
/third_party/boost/libs/compute/test/
Dtest_literal_conversion.cpp27 std::string literal = boost::compute::detail::make_literal(values[i]); in BOOST_AUTO_TEST_CASE() local
30 BOOST_CHECK_EQUAL(literal.substr(0, 6), "1.2345"); in BOOST_AUTO_TEST_CASE()
34 BOOST_CHECK_EQUAL(literal.substr(literal.length()-1), "f"); in BOOST_AUTO_TEST_CASE()
36 std::istringstream iss(literal.substr(0, literal.length()-1)); in BOOST_AUTO_TEST_CASE()
53 std::string literal = boost::compute::detail::make_literal(values[i]); in BOOST_AUTO_TEST_CASE() local
56 BOOST_CHECK_EQUAL(literal.substr(0, 11), "1.234567890"); in BOOST_AUTO_TEST_CASE()
62 std::istringstream iss(literal); in BOOST_AUTO_TEST_CASE()
/third_party/python/Tools/peg_generator/pegen/
Dgrammar_parser.py105 (literal := self.expect("@"))
116 (literal := self.expect("@"))
129 (literal := self.expect("@"))
174 (literal := self.expect(":"))
195 (literal := self.expect(":"))
214 (literal := self.expect(":"))
233 (literal := self.expect('['))
248 (literal := self.expect('['))
272 (literal := self.expect('('))
291 (literal := self.expect("|"))
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/sb/
Dsb_expr.h63 value* get_const(const literal &l);
81 bool eval_const_op(unsigned op, literal &r, literal cv0, literal cv1);
84 static void apply_alu_src_mod(const bc_alu &bc, unsigned src, literal &v);
85 static void apply_alu_dst_mod(const bc_alu &bc, literal &v);
89 static bool evaluate_condition(unsigned alu_cnd_flags, literal s1,
90 literal s2);

12345678910>>...74