@@ -34,6 +34,22 @@ Future<void> main() async {
34
34
// Generate src/symbols.generated.c
35
35
print (' - Writing src/symbols.generated.c' );
36
36
await File .fromUri (rootUri.resolve ('src/symbols.generated.c' )).writeAsString ([
37
+ '/*' ,
38
+ ' * Copyright 2020 Google LLC' ,
39
+ ' *' ,
40
+ ' * Licensed under the Apache License, Version 2.0 (the "License");' ,
41
+ ' * you may not use this file except in compliance with the License.' ,
42
+ ' * You may obtain a copy of the License at' ,
43
+ ' *' ,
44
+ ' * http://www.apache.org/licenses/LICENSE-2.0' ,
45
+ ' *' ,
46
+ ' * Unless required by applicable law or agreed to in writing, software' ,
47
+ ' * distributed under the License is distributed on an "AS IS" BASIS,' ,
48
+ ' * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.' ,
49
+ ' * See the License for the specific language governing permissions and' ,
50
+ ' * limitations under the License.' ,
51
+ ' */' ,
52
+ '' ,
37
53
'// **GENERATED FILE DO NOT MODIFY**' ,
38
54
'//' ,
39
55
'// This file is generated from `src/symbols.yaml` using:' ,
@@ -51,6 +67,20 @@ Future<void> main() async {
51
67
print (' - Writing lib/src/boringssl/lookup/symbols.generated.dart' );
52
68
final generatedDart = 'lib/src/boringssl/lookup/symbols.generated.dart' ;
53
69
await File .fromUri (rootUri.resolve (generatedDart)).writeAsString ([
70
+ '// Copyright 2020 Google LLC' ,
71
+ '//' ,
72
+ '// Licensed under the Apache License, Version 2.0 (the "License");' ,
73
+ '// you may not use this file except in compliance with the License.' ,
74
+ '// You may obtain a copy of the License at' ,
75
+ '//' ,
76
+ '// http://www.apache.org/licenses/LICENSE-2.0' ,
77
+ '//' ,
78
+ '// Unless required by applicable law or agreed to in writing, software' ,
79
+ '// distributed under the License is distributed on an "AS IS" BASIS,' ,
80
+ '// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.' ,
81
+ '// See the License for the specific language governing permissions and' ,
82
+ '// limitations under the License.' ,
83
+ '' ,
54
84
'/// **GENERATED FILE DO NOT MODIFY**' ,
55
85
'///' ,
56
86
'/// This file is generated from `src/symbols.yaml` using:' ,
@@ -69,7 +99,7 @@ Future<void> main() async {
69
99
'extension SymName on Sym {' ,
70
100
' /// Get name of symbol in `libcrypto.so` from BoringSSL.' ,
71
101
' String get name {' ,
72
- ' return _SymName[this. index];' ,
102
+ ' return _SymName[index];' ,
73
103
' }' ,
74
104
'}' ,
75
105
'' ,
0 commit comments