Home
last modified time | relevance | path

Searched refs:cons (Results 1 – 25 of 105) sorted by relevance

12345

/external/clang/test/SemaTemplate/
Dexample-typelist.cpp8 struct cons { struct
28 struct length<cons<Head, Tail> > { argument
37 typedef cons<unsigned char,
38 cons<unsigned short,
39 cons<unsigned int,
40 cons<unsigned long> > > > unsigned_inttypes;
55 typedef cons<typename reversed_tail::head,
56 typename reverse<cons<typename T::head, most_of_tail> >::type> type;
60 class reverse<cons<Head> > {
62 typedef cons<Head> type;
[all …]
/external/python/cpython3/Lib/test/
Dtest_asdl_parser.py74 cons = ehandler.types[0]
75 self.assertIsInstance(cons, self.asdl.Constructor)
76 self.assertEqual(len(cons.fields), 3)
78 f0 = cons.fields[0]
83 f1 = cons.fields[1]
88 f2 = cons.fields[2]
111 def visitConstructor(self, cons): argument
112 for f in cons.fields:
114 self.names_with_seq.append(cons.name)
Dtest_hashlib.py169 for cons in self.hash_constructors:
170 c = cons(a)
216 for cons in self.hash_constructors:
217 h = cons()
226 for cons in self.hash_constructors:
227 h = cons()
241 for cons in self.hash_constructors:
242 m1 = cons()
252 m2 = cons()
256 m3 = cons(aas + bees + cees + dees)
[all …]
/external/python/cpython3/Parser/
Dasdl_c.py177 def visitConstructor(self, cons, depth): argument
178 if cons.fields:
180 for f in cons.fields:
182 self.emit("} %s;" % cons.name, depth)
255 def visitConstructor(self, cons, type, attrs): argument
256 args = self.get_args(cons.fields)
259 self.emit_function(cons.name, ctype, args, attrs)
353 def visitConstructor(self, cons, name): argument
611 def visitConstructor(self, cons, name): argument
612 self.emit("static PyTypeObject *%s_type;" % cons.name, 0)
[all …]
Dasdl.py141 self.cons = {}
156 def visitConstructor(self, cons, name): argument
157 key = str(cons.name)
158 conflict = self.cons.get(key)
160 self.cons[key] = name
165 for f in cons.fields:
/external/python/cpython2/Parser/
Dasdl_c.py176 def visitConstructor(self, cons, depth): argument
177 if cons.fields:
179 for f in cons.fields:
181 self.emit("} %s;" % cons.name, depth)
252 def visitConstructor(self, cons, type, attrs): argument
253 args = self.get_args(cons.fields)
256 self.emit_function(cons.name, ctype, args, attrs)
348 def visitConstructor(self, cons, name): argument
588 def visitConstructor(self, cons, name): argument
589 self.emit("static PyTypeObject *%s_type;" % cons.name, 0)
[all …]
Dasdl.py333 self.cons = {}
348 def visitConstructor(self, cons, name): argument
349 key = str(cons.name)
350 conflict = self.cons.get(key)
352 self.cons[key] = name
357 for f in cons.fields:
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_build_ast.c5737 struct cil_constrain *cons; in test_cil_gen_constrain_expr_stack_eq2_t1type() local
5738 cil_constrain_init(&cons); in test_cil_gen_constrain_expr_stack_eq2_t1type()
5740 cil_classpermset_init(&cons->classpermset); in test_cil_gen_constrain_expr_stack_eq2_t1type()
5741 cil_fill_classpermset(parse_current->next->cl_head, cons->classpermset); in test_cil_gen_constrain_expr_stack_eq2_t1type()
5743 int rc = cil_gen_expr_stack(parse_current->next->next, CIL_MLSCONSTRAIN, &cons->expr); in test_cil_gen_constrain_expr_stack_eq2_t1type()
5763 struct cil_constrain *cons; in test_cil_gen_constrain_expr_stack_eq2_t1t1_neg() local
5764 cil_constrain_init(&cons); in test_cil_gen_constrain_expr_stack_eq2_t1t1_neg()
5765 cil_classpermset_init(&cons->classpermset); in test_cil_gen_constrain_expr_stack_eq2_t1t1_neg()
5766 cil_fill_classpermset(parse_current->next->cl_head, cons->classpermset); in test_cil_gen_constrain_expr_stack_eq2_t1t1_neg()
5768 int rc = cil_gen_expr_stack(parse_current->next->next->next, CIL_MLSCONSTRAIN, &cons->expr); in test_cil_gen_constrain_expr_stack_eq2_t1t1_neg()
[all …]
/external/apache-xml/src/main/java/org/apache/xalan/extensions/
DExtensionNamespaceSupport.java83 Constructor[] cons = cl.getConstructors(); in launch() local
84 for (int i = 0; i < cons.length; i ++) in launch()
86 if (cons[i].getParameterTypes().length == m_args.length) in launch()
88 con = cons[i]; in launch()
/external/javassist/src/main/javassist/
DCtNewWrappedConstructor.java35 CtConstructor cons = new CtConstructor(parameterTypes, declaring); in wrapped() local
36 cons.setExceptionTypes(exceptionTypes); in wrapped()
40 cons.getMethodInfo2().setCodeAttribute(code.toCodeAttribute()); in wrapped()
41 return cons; in wrapped()
DCtMember.java78 void addConstructor(CtMember cons) { in addConstructor() argument
79 cons.next = consTail.next; in addConstructor()
80 consTail.next = cons; in addConstructor()
82 fieldTail = cons; in addConstructor()
84 consTail = cons; in addConstructor()
DCtClassType.java974 CtMember cons = memCache.consHead(); in getDeclaredBehaviors() local
976 int cnum = CtMember.Cache.count(cons, consTail); in getDeclaredBehaviors()
983 while (cons != consTail) { in getDeclaredBehaviors()
984 cons = cons.next(); in getDeclaredBehaviors()
985 cb[i++] = (CtBehavior)cons; in getDeclaredBehaviors()
998 CtMember cons = memCache.consHead(); in getConstructors() local
1002 CtMember mem = cons; in getConstructors()
1011 mem = cons; in getConstructors()
1022 private static boolean isPubCons(CtConstructor cons) { in isPubCons() argument
1023 return !Modifier.isPrivate(cons.getModifiers()) in isPubCons()
[all …]
DCtNewClass.java95 CtConstructor cons in inheritAllConstructors() local
98 cons.setModifiers(mod & (Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE)); in inheritAllConstructors()
99 addConstructor(cons); in inheritAllConstructors()
DCtNewConstructor.java138 CtConstructor cons = new CtConstructor((CtClass[])null, declaring); in defaultConstructor() local
154 cons.getMethodInfo2().setCodeAttribute(code.toCodeAttribute()); in defaultConstructor()
155 return cons; in defaultConstructor()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/body/
DConstructorDeclarationTest.java16 ConstructorDeclaration cons = new ConstructorDeclaration("Cons"); in acceptsSuper() local
17 cons.createBody().addStatement("super();"); in acceptsSuper()
21 "}", EOL), cons.toString()); in acceptsSuper()
/external/clang/test/
Dcxx-sections.data523 18.9.1 [support.initlist.cons]
589 20.3.6.1 [bitset.cons]
735 20.9.3.1 [time.duration.cons]
743 20.9.4.1 [time.point.cons]
768 21.4.2 [string.cons]
812 22.3.1.2 [locale.cons]
899 23.3.1.1 [array.cons]
907 23.3.2.1 [deque.cons]
912 23.3.3.1 [forwardlist.cons]
919 23.3.4.1 [list.cons]
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_destroy/
D3-1.c33 pthread_t prod, cons; in main() local
51 if (pthread_create(&cons, NULL, consumer, (void *)cnt) != 0) { in main()
56 if (pthread_join(prod, NULL) == 0 && pthread_join(cons, NULL) == 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/
D3-1.c33 pthread_t prod, cons; in main() local
51 if (pthread_create(&cons, NULL, consumer, (void *)cnt) != 0) { in main()
56 if ((pthread_join(prod, NULL) == 0) && (pthread_join(cons, NULL) == 0)) { in main()
/external/icu/icu4c/source/data/translit/
Dcy_cy_FONIPA.txt30 $cons = [
95 {($vowel+ $cons+ $vowel+ $cons*)} $end → ˈ $1; ## Polysyllabic words
96 $end $cons* {($vowel+ $cons*)} $end → ˈ $1; ## Monosyllabic words
106 yw } $cons* $end → ɨu;
108 y} $cons* $end → ɨ;
194 ([$cons w] [l ɬ r {r\u0325}]? j? w?) ˈ → ˈ $1;
/external/llvm/utils/emacs/
Dtablegen-mode.el42 (cons (concat kw "[ \n\t(]") 1)
45 (cons (concat type-kw "[ \n\t(]") 1)
127 (add-to-list 'auto-mode-alist (cons (purecopy "\\.td\\'") 'tablegen-mode))
DREADME12 (cons (expand-file-name "path-to-llvm/utils/emacs") load-path))
21 (cons (expand-file-name "path-to-llvm/utils/emacs") load-path))
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothHealthFacade.java144 Constructor[] cons = btHealthAppConfigClass.getConstructors(); in bluetoothHealthRegisterAppConfiguration() local
145 for (int i = 0; i < cons.length; i++) { in bluetoothHealthRegisterAppConfiguration()
146 System.out.println("constuctor: " + cons[i]); in bluetoothHealthRegisterAppConfiguration()
152 System.out.println(Integer.toString(cons.length)); in bluetoothHealthRegisterAppConfiguration()
/external/nist-sip/java/gov/nist/javax/sip/parser/
DParserFactory.java294 Constructor cons = (Constructor) parserConstructorCache.get(parserClass); in createParser() local
295 if (cons == null) { in createParser()
296 cons = parserClass.getConstructor(constructorArgs); in createParser()
297 parserConstructorCache.put(parserClass, cons); in createParser()
301 HeaderParser retval = (HeaderParser) cons.newInstance(args); in createParser()
/external/testng/src/main/java/org/testng/internal/annotations/
DJDK15AnnotationFinder.java197 public <A extends IAnnotation> A findAnnotation(Constructor<?> cons, Class<A> annotationClass) { in findAnnotation() argument
203 Annotation annotation = cons.getAnnotation(a); in findAnnotation()
204 return findAnnotation(cons.getDeclaringClass(), annotation, annotationClass, null, cons, null, in findAnnotation()
205 new Pair<>(annotation, cons)); in findAnnotation()
/external/swiftshader/third_party/LLVM/utils/emacs/
DREADME12 (cons (expand-file-name "path-to-llvm/utils/emacs") load-path))
21 (cons (expand-file-name "path-to-llvm/utils/emacs") load-path))

12345