Home
last modified time | relevance | path

Searched refs:snippet (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/third_party/flutter/flutter/dev/docs/assets/
Dsnippets.css2 .snippet-container {
8 .snippet-container pre {
15 .snippet-container ::-webkit-scrollbar {
19 .snippet-container ::-webkit-scrollbar-thumb {
24 .snippet {
28 .snippet-description {
33 .snippet-description a:link {
36 .snippet-description a:visited {
39 .snippet-description a:hover {
42 .snippet-description a:active {
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
Dgen_load_functions_table.py111 snippet = "LoadImageFunctionInfo " + func_name + "(GLenum type)\n"
112 snippet += "{\n"
113 snippet += " switch (type)\n"
114 snippet += " {\n"
116 snippet += " case " + gl_type + ":\n"
118snippet += " return LoadImageFunctionInfo(" + load_function + ", " + requiresConversion…
119 snippet += " default:\n"
120 snippet += " UNREACHABLE();\n"
121 snippet += " return LoadImageFunctionInfo(UnreachableLoadFunction, true);\n"
122 snippet += " }\n"
[all …]
Dgen_load_texture_border_functions_table.py73 snippet = "LoadTextureBorderFunctionInfo " + func_name + "()\n"
74 snippet += "{\n"
75 snippet += " return LoadTextureBorderFunctionInfo(" + load_function + ");\n"
76 snippet += "}\n"
77 snippet += "\n"
79 return snippet
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/
Dgen_load_functions_table.py112 snippet = "LoadImageFunctionInfo " + func_name + "(GLenum type)\n"
113 snippet += "{\n"
114 snippet += " switch (type)\n"
115 snippet += " {\n"
117 snippet += " case " + gl_type + ":\n"
119snippet += " return LoadImageFunctionInfo(" + load_function + ", " + requiresConversion…
120 snippet += " default:\n"
121 snippet += " UNREACHABLE();\n"
122 snippet += " return LoadImageFunctionInfo(UnreachableLoadFunction, true);\n"
123 snippet += " }\n"
[all …]
/third_party/python/Lib/test/
Dtest_compile.py1043 def check_stack_size(self, snippet, async_=False): argument
1046 script = """def func():\n""" + i * snippet
1059 "%s\n%s\n%s" % (sizes, snippet, out.getvalue()))
1062 snippet = """
1066 self.check_stack_size(snippet)
1069 snippet = """
1077 self.check_stack_size(snippet)
1080 snippet = """
1086 self.check_stack_size(snippet)
1089 snippet = """
[all …]
/third_party/PyYAML/tests/lib/
Dtest_mark.py19 snippet = mark.get_snippet(indent=2, max_length=79)
21 print(snippet)
22 assert isinstance(snippet, str), type(snippet)
23 assert snippet.count('\n') == 1, snippet.count('\n')
24 data, pointer = snippet.split('\n')
/third_party/boost/libs/outcome/doc/src/layouts/shortcodes/
Dsnippet.md1snippet">{{ $snippet := split (readFile (printf "snippets/%s" (.Get 0))) (printf "//! [%s]" (.Get …
/third_party/jerryscript/tests/jerry/es5.1/
Dobject-literal-fails.js15 function throw_error(snippet) argument
19 eval(snippet);
28 function throw_error_strict(snippet) argument
34 eval(snippet);
/third_party/flutter/flutter/dev/snippets/test/
Dsnippets_test.dart62 A description of the snippet.
67 const String name = 'snippet';
88 expect(html, contains('A description of the snippet.\n'));
91 contains('// A description of the snippet.\n'
101 A description of the snippet.
116 expect(html, contains('<div class="snippet-description">'
117 '{@end-inject-html}A description of the snippet.\n\n'
122 test('generates snippet application metadata', () async {
126 A description of the snippet.
151 expect(json['description'], equals('A description of the snippet.\n\nOn several lines.'));
/third_party/PyYAML/lib/yaml/
Derror.py33 snippet = self.buffer[start:end]
34 return ' '*indent + head + snippet + tail + '\n' \
38 snippet = self.get_snippet()
41 if snippet is not None:
42 where += ":\n"+snippet
/third_party/boost/tools/quickbook/src/
Dcode_snippet.cpp80 boost::shared_ptr<snippet_data> snippet(snippet_stack); in pop_snippet_data() local
81 snippet_stack = snippet->next; in pop_snippet_data()
82 snippet->next.reset(); in pop_snippet_data()
83 return snippet; in pop_snippet_data()
434 snippet_data& snippet = *snippet_stack; in escaped_comment() local
440 if (snippet.id == "!") { in escaped_comment()
506 boost::shared_ptr<snippet_data> snippet = pop_snippet_data(); in end_snippet_impl() local
510 if (snippet->start_code) { in end_snippet_impl()
511 f.add_at_pos("\n\n", snippet->source_pos); in end_snippet_impl()
512 f.add_at_pos(source_type, snippet->source_pos); in end_snippet_impl()
[all …]
/third_party/flutter/flutter/dev/snippets/lib/
Dmain.dart24 /// Generates snippet dartdoc output for a given input, and creates any sample
25 /// applications needed by the snippet.
38 'Produce a code snippet complete with embedding the sample in an '
44 help: 'The type of snippet to produce.',
54 help: 'The output path for the generated snippet application. Overrides '
62 help: 'The input file containing the snippet code to inject.',
67 help: 'The name of the package that this snippet belongs to.',
72 help: 'The name of the library that this snippet belongs to.',
77 help: 'The name of the element that this snippet belongs to.',
82 help: 'A unique serial number for this snippet tool invocation.',
Dsnippets.dart20 // snippet.
29 /// Generates the snippet HTML, as well as saving the output snippet main to
41 /// snippet.
46 /// A Dart formatted used to format the snippet code and finished application
50 /// This returns the output file for a given snippet ID. Only used for
102 /// if not a [SnippetType.application] snippet.
125 ? '<div class="snippet-description">{@end-inject-html}$description{@inject-html}</div>'
202 /// The [type] is the type of snippet to create: either a
243 errorExit('Unable to format snippet app template: $exception');
/third_party/flutter/flutter/dev/bots/
Danalyze-sample-code.dart14 // Additionally, code inside of dartdoc snippet and sample blocks
15 // ({@tool snippet ...}{@end-tool}, and {@tool sample ...}{@end-tool})
138 /// line number of the start of the snippet is given instead of the actual error
155 /// A RegExp that matches the beginning of a dartdoc snippet or sample.
156 static final RegExp _dartDocSampleBeginRegex = RegExp(r'{@tool (sample|snippet)(?:| ([^}]*))}');
158 /// A RegExp that matches the end of a dartdoc snippet or sample.
268 /// Creates a name for the snippets tool to use for the snippet ID from a
302 /// Writes out the given [snippet] to an output file in the [_tempDirectory] and
304 File _writeSnippet(Snippet snippet) {
305 // Generate the snippet.
[all …]
/third_party/boost/libs/test/doc/tutorials/
Dnew_year_resolution.qbk22 [import ../snippet/snippet13.cpp] [snippet13]
34 [import ../snippet/snippet14.cpp] [snippet14]
39 [import ../snippet/snippet15.cpp] [snippet15]
57 [import ../snippet/snippet16.cpp][snippet16]
61 [import ../snippet/snippet17.cpp] [snippet17]
70 [import ../snippet/const_string.hpp] [import ../snippet/const_string_test.cpp]
72 Continuing my effort I am able to complete class `const_string` (see [@../snippet/const_string.hpp …
73 =const_string.hpp=]) and testing module for it (see [@../snippet/const_string_test.cpp Listing 2 =c…
/third_party/flutter/flutter/dev/snippets/
DREADME.md13 - [Snippet tool](#snippet-tool)
46 ![Code snippet image](assets/code_snippet.png)
48 The code `snippet` tool can expand sample code into full Flutter applications.
53 /// {@tool snippet --template=stateless_widget_material}
91 the code snippet UI, we have to be able to insert the `snippet` into the template
96 `snippet` can be placed into, basically a replacement for `lib/main.dart` in a
/third_party/boost/libs/outcome/doc/src/content/tutorial/essential/result/
D_index.md11 {{% snippet "using_result.cpp" "convert_decl" %}}
32 {{% snippet "using_result.cpp" "enum" %}}
39 {{% snippet "using_result.cpp" "convert" %}}
45 {{% snippet "using_result.cpp" "explicit" %}}
49 {{% snippet "using_result.cpp" "factory" %}}
/third_party/boost/libs/outcome/doc/src/content/recipes/
Dasio-integration.md31 {{% snippet "boost-only/asio_integration.cpp" "old-use-case" %}}
36 {{% snippet "boost-only/asio_integration.cpp" "new-use-case" %}}
47 {{% snippet "boost-only/asio_integration.cpp" "outcome-use-case" %}}
71 {{% snippet "boost-only/asio_integration.cpp" "as_result" %}}
76 {{% snippet "boost-only/asio_integration.cpp" "async_result1" %}}
84 {{% snippet "boost-only/asio_integration.cpp" "async_result2" %}}
Dforeign-try.md58 {{% snippet "foreign_try.cpp" "foreign_type" %}}
63 {{% snippet "foreign_try.cpp" "functions" %}}
67 {{% snippet "foreign_try.cpp" "tell_outcome" %}}
71 {{% snippet "foreign_try.cpp" "example" %}}
Dasio-integration-1-70.md30 {{% snippet "boost-only/asio_integration_1_70.cpp" "old-use-case" %}}
35 {{% snippet "boost-only/asio_integration_1_70.cpp" "new-use-case" %}}
46 {{% snippet "boost-only/asio_integration_1_70.cpp" "outcome-use-case" %}}
70 {{% snippet "boost-only/asio_integration_1_70.cpp" "as_result" %}}
75 {{% snippet "boost-only/asio_integration_1_70.cpp" "async_result1" %}}
93 {{% snippet "boost-only/asio_integration_1_70.cpp" "async_result2" %}}
/third_party/boost/libs/outcome/doc/src/content/experimental/c-api/
Dexample2.md9 {{% snippet "c_api.c" "preamble" %}}
13 {{% snippet "c_api.c" "example" %}}
/third_party/flutter/flutter/dev/snippets/config/templates/
DREADME.md7 /// {@tool snippet --template=stateful_widget}
9 /// top of the snippet box as a description. Don't try and say "see the code
27 /// the snippet. These two code blocks will be separated by `///...` in the
28 /// short version of the snippet code sample.
55 All code within a code block in a snippet needs to be able to be run through
/third_party/boost/libs/outcome/doc/src/content/tutorial/essential/no-value/
Dcustom.md10 {{% snippet "policies.cpp" "abort_policy" %}}
18 {{% snippet "policies.cpp" "outcome_spec" %}}
/third_party/boost/libs/outcome/doc/src/content/tutorial/advanced/constructors/
Dmetaprogrammg2.md9 {{% snippet "constructors.cpp" "construct-declaration" %}}
15 {{% snippet "constructors.cpp" "construct-specialisation" %}}
/third_party/jerryscript/tests/jerry/es2015/
Dobject-computed.js127 function throw_error(snippet) argument
130 eval(snippet);

12345678910>>...12