File tree Expand file tree Collapse file tree 14 files changed +131
-48
lines changed Expand file tree Collapse file tree 14 files changed +131
-48
lines changed Original file line number Diff line number Diff line change 2828  pos
2929  rage
3030  redeclarations
31+   sandcastle
3132  server
3233  server_command_types
3334  server_monitor
Original file line number Diff line number Diff line change 374374 (libraries
375375  ci_util
376376  client_provider
377+   sandcastle
377378  server_config
378379  server_notifier)
379380 (preprocess
Original file line number Diff line number Diff line change 1+ let  start  _  =  () 
Original file line number Diff line number Diff line change 6565 (modules saved_state_loader state_loader_futures state_loader_lwt)
6666 (libraries
6767  hg
68+   server_env
6869  typechecker_options)
6970 (preprocess
7071  (pps lwt_ppx ppx_deriving.std)))
7172
72-  ; this stub file is used by both buck2 and dune
73- (rule
74-  (target remote_old_decls_ffi.ml)
75-  (action
76-   (copy# ../facebook/remote_old_decls/stubs/remote_old_decls_ffi.ml remote_old_decls_ffi.ml)))
77- 
7873(library
7974  (name remote_old_decls_ffi)
8075  (wrapped false)
8479  (preprocess
8580    (pps lwt_ppx ppx_deriving.std)))
8681
87- ; this stub file is used by both buck2 and dune
88- (rule
89-  (target hh_distc_ffi.ml)
90-  (action
91-   (copy# ../facebook/hh_distc/check_ffi/stubs/hh_distc_ffi.ml hh_distc_ffi.ml)))
92- 
9382(library
9483  (name hh_distc_ffi)
9584  (wrapped false)
169158 (preprocess
170159  (pps lwt_ppx ppx_deriving.std)))
171160
161+ (library
162+  (name redeclarations)
163+  (wrapped false)
164+  (modules declarationsRewriter))
165+ 
166+ (library
167+  (name linttool)
168+  (wrapped false)
169+  (modules linttool))
170+ 
171+  (library
172+  (name sandcastle_stubs)
173+  (wrapped false)
174+  (modules sandcastle))
175+ 
172176(library
173177 (name startup_initializer_stubs)
174178 (wrapped false)
Original file line number Diff line number Diff line change 1+ (* 
2+  * Copyright (c) Facebook, Inc. and its affiliates. 
3+  * 
4+  * This source code is licensed under the MIT license found in the 
5+  * LICENSE file in the "hack" directory of this source tree. 
6+  * 
7+  *)  
8+ 
9+ type  handle 
10+ 
11+ let  spawn  ~root :_   ~ss_dir :_   ~hhdg_path :_   _  =  failwith " start not implemented" 
12+ 
13+ let  join  _  =  failwith " join_handle not implemented" 
14+ 
15+ let  cancel  _  =  failwith " cancel not implemented" 
16+ 
17+ let  is_finished  _  =  failwith " is_finished not implemented" 
18+ 
19+ let  get_fd  _  =  failwith " get_fd not implemented" 
20+ 
21+ let  get_re_session_id  _  =  failwith " get_re_session_id not implemented" 
22+ 
23+ let  recv  _  =  failwith " recv not implemented" 
Original file line number Diff line number Diff line change 1+ let  run  _  ~severity :_   =  () 
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ let set_changed_mergebase _ = ()
2727
2828let  set_hhconfig_version  _  =  () 
2929
30+ let  set_mergebase_globalrev  _  =  () 
31+ 
3032let  set_rollout_group  _  =  () 
3133
3234let  set_rollout_flags  _  =  () 
@@ -105,7 +107,7 @@ let type_check_dirty ~start_t:_ ~dirty_count:_ ~recheck_count:_ = ()
105107
106108let  lock_stolen  _  =  () 
107109
108- let  client_init  ~init_id :_   ~from :_   ~custom_columns :_   _  =  () 
110+ let  client_init  ~init_id :_   ~from :_   ~is_interactive : _    ~ custom_columns :_ _  =  () 
109111
110112let  serverless_ide_init  ~init_id :_   =  () 
111113
@@ -571,3 +573,11 @@ module Fanouts = struct
571573  let  log  ~changes_cardinal :_   ~fanout_cardinal :_   ~max_class_fanout_cardinal :_   = 
572574    () 
573575end 
576+ 
577+ module  TypingErrors  =  struct 
578+   let  log_errors  ~type_check_end_id :_   ~data :_   =  () 
579+ end 
580+ 
581+ module  Diagnostics  =  struct 
582+   let  log  _  =  () 
583+ end 
Original file line number Diff line number Diff line change 1+ (* 
2+  * Copyright (c) Facebook, Inc. and its affiliates. 
3+  * 
4+  * This source code is licensed under the MIT license found in the 
5+  * LICENSE file in the "hack" directory of this source tree. 
6+  * 
7+  *)  
8+ 
9+ let  get_decls_via_file_hashes  _  _  = 
10+   failwith " get_decls_via_file_hashes not implemented" 
Original file line number Diff line number Diff line change 1+ let  is_sandcastle  ()  : bool  =  false 
Original file line number Diff line number Diff line change 1+ (* -*- tuareg -*- *)
2+ 
3+ let library_entry name suffix =
4+   Printf.sprintf
5+ "(library
6+   (name %s)
7+   (wrapped false)
8+   (modules)
9+   (libraries %s_%s))" name name suffix
10+ 
11+ let fb_entry name =
12+   library_entry name "fb"
13+ 
14+ let stubs_entry name =
15+   library_entry name "stubs"
16+ 
17+ let entry is_fb name =
18+   if is_fb then
19+     fb_entry name
20+   else
21+     stubs_entry name
22+ 
23+ let () =
24+   (* test presence of fb subfolder *)
25+   let current_dir = Sys.getcwd () in
26+   (* we are in src/stubs/xxx, locate src/utils/facebook *)
27+   let src_dir = Filename.dirname @@ Filename.dirname current_dir in
28+   let utils_dir = Filename.concat src_dir "utils" in
29+   let fb_utils_dir = Filename.concat utils_dir "facebook" in
30+   (* locate src/utils/facebook/dune *)
31+   let fb_dune = Filename.concat fb_utils_dir "dune" in
32+   let is_fb = Sys.file_exists fb_dune in
33+   let lib_name = entry is_fb "sandcastle" in
34+   Jbuild_plugin.V1.send lib_name
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments