File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -729,6 +729,14 @@ export default class Parser {
729
729
rustType . swiftRawSignature = 'Int64' ;
730
730
rustType . kind = RustKind . Primitive ;
731
731
}
732
+ } else if ( relevantTypeLine . startsWith ( 'double' ) ) {
733
+ rustType = new RustPrimitive ( ) ;
734
+ typelessLineRemainder = relevantTypeLine . substring ( 'double' . length ) . trim ( ) ;
735
+ if ( rustType instanceof RustPrimitive ) {
736
+ rustType . cSignature = 'double' ;
737
+ rustType . swiftRawSignature = 'Double' ;
738
+ rustType . kind = RustKind . Primitive ;
739
+ }
732
740
} else if ( relevantTypeLine . startsWith ( 'bool' ) ) {
733
741
rustType = new RustPrimitive ( ) ;
734
742
typelessLineRemainder = relevantTypeLine . substring ( 'bool' . length ) . trim ( ) ;
@@ -1000,7 +1008,7 @@ export default class Parser {
1000
1008
*
1001
1009
*/
1002
1010
1003
- const METHOD_TYPE_ASSOCIATION_PREFIX_REGEX = / ^ ( [ A - Z ] [ a - z A - Z 0 - 9 ] * ) ( _ ( [ A - Z _ ] [ a - z A - Z 0 - 9 ] * ) ) * ( _ ( i 5 | i 8 | i 1 6 | i 3 2 | i 6 4 | i 1 2 8 | u 5 | u 8 | u 1 6 | u 3 2 | u 6 4 | u 1 2 8 | u s i z e | b o o l ) [ a - z A - Z 0 - 9 ] + ) ? / ;
1011
+ const METHOD_TYPE_ASSOCIATION_PREFIX_REGEX = / ^ ( [ A - Z ] [ a - z A - Z 0 - 9 ] * ) ( _ ( [ A - Z _ ] [ a - z A - Z 0 - 9 ] * ) ) * ( _ ( f 6 4 | i 5 | i 8 | i 1 6 | i 3 2 | i 6 4 | i 1 2 8 | u 5 | u 8 | u 1 6 | u 3 2 | u 6 4 | u 1 2 8 | u s i z e | b o o l ) [ a - z A - Z 0 - 9 ] + ) * / ;
1004
1012
const prefixMatches = METHOD_TYPE_ASSOCIATION_PREFIX_REGEX . exec ( name ) ;
1005
1013
if ( ! prefixMatches ) {
1006
1014
// debug('object-unassociated method name: %s', name);
You can’t perform that action at this time.
0 commit comments