File tree Expand file tree Collapse file tree 7 files changed +55
-28330
lines changed Expand file tree Collapse file tree 7 files changed +55
-28330
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import GdbApi from "./GdbApi.jsx";
4
4
import Actions from "./Actions.js" ;
5
5
import Util from "./Util.js" ;
6
6
import FileOps from "./FileOps.jsx" ;
7
- import { FileLink } from "./Links.jsx " ;
7
+ import { FileLink } from "./Links" ;
8
8
9
9
const BreakpointSourceLineCache = {
10
10
_cache : { } ,
Original file line number Diff line number Diff line change 1
1
import Actions from "./Actions.js" ;
2
2
import React from "react" ;
3
3
import CopyToClipboard from "./CopyToClipboard.jsx" ;
4
+ import MemoryLink from "./MemoryLink.jsx"
4
5
5
- class FileLink extends React . Component {
6
+ type Props = {
7
+ file ?: string
8
+ fullname ?: string
9
+ line : string
10
+ num_lines ?: number
11
+ }
12
+
13
+ export class FileLink extends React . Component < Props > {
6
14
render ( ) {
7
15
let line = parseInt ( this . props . line ) ;
8
- let onclick = null ,
16
+ let onclick = ( ) => { } ,
9
17
cls = "" ;
10
18
if ( ! this . props . file || ! line ) {
11
- line = "" ;
19
+ line = 0 ;
12
20
}
13
21
let sep = "" ;
14
22
if ( line && line !== 0 ) {
@@ -43,7 +51,14 @@ class FileLink extends React.Component {
43
51
}
44
52
}
45
53
46
- class FrameLink extends React . Component {
54
+ type FrameLinkProps = {
55
+ addr : string
56
+ file ?: string
57
+ fullname ?: string
58
+ line : string
59
+ }
60
+
61
+ export class FrameLink extends React . Component < FrameLinkProps > {
47
62
render ( ) {
48
63
return (
49
64
< div >
@@ -58,6 +73,3 @@ class FrameLink extends React.Component {
58
73
) ;
59
74
}
60
75
}
61
-
62
- export { FileLink } ;
63
- export { FrameLink } ;
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import constants from "./constants.js" ;
3
3
import { store } from "statorgfc" ;
4
- import { FileLink } from "./Links.jsx " ;
4
+ import { FileLink } from "./Links" ;
5
5
import FileOps from "./FileOps.jsx" ;
6
6
7
7
class SourceCodeHeading extends React . Component {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import ReactTable from "./ReactTable.jsx";
3
3
import { store } from "statorgfc" ;
4
4
import GdbApi from "./GdbApi.jsx" ;
5
5
import Memory from "./Memory.jsx" ;
6
- import { FileLink } from "./Links.jsx " ;
6
+ import { FileLink } from "./Links" ;
7
7
import MemoryLink from "./MemoryLink.jsx" ;
8
8
9
9
class FrameArguments extends React . Component {
You can’t perform that action at this time.
0 commit comments