Initial commit: rustytokens — native codebase indexer + MCP server
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
commit
354132e887
43 files changed
+3783
No files matched your search
Vendored
+1
@@ -0,0 +1 @@
|
||||
int c_dead(void) { return 0; }
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
#include "util.h"
|
||||
|
||||
int main(void) {
|
||||
return helper();
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
#include "util.h"
|
||||
|
||||
int helper(void) { return 0; }
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
int helper(void);
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
#include "math.hpp"
|
||||
|
||||
int main() {
|
||||
return Math::add(1, 2);
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
#include "math.hpp"
|
||||
|
||||
Math::Math(int scale) : scale_(scale) {
|
||||
scale_ = scale;
|
||||
}
|
||||
|
||||
Math::~Math() {
|
||||
scale_ = 0;
|
||||
}
|
||||
|
||||
int Math::add(int a, int b) { return a + b; }
|
||||
|
||||
int Math::scaled(int v) const { return v * scale_; }
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
class Math {
|
||||
public:
|
||||
Math(int scale);
|
||||
~Math();
|
||||
static int add(int a, int b);
|
||||
int scaled(int v) const;
|
||||
private:
|
||||
int scale_;
|
||||
};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
console.log("hi");
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<script src="app.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello</h1>
|
||||
</body>
|
||||
</html>
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
body { color: red; }
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package demo;
|
||||
|
||||
public class Dead {
|
||||
public static void unused() {}
|
||||
}
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
package demo;
|
||||
|
||||
import demo.Util;
|
||||
|
||||
public class Main {
|
||||
private final int seed;
|
||||
|
||||
public Main(int seed) {
|
||||
this.seed = seed;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(Util.helper());
|
||||
}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package demo;
|
||||
|
||||
public class Util {
|
||||
public static int helper() { return 42; }
|
||||
}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
def py_dead():
|
||||
return 0
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
from util import helper
|
||||
|
||||
|
||||
def run():
|
||||
return helper()
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
def helper():
|
||||
return 1
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
pub fn totally_dead() {}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
pub mod util;
|
||||
|
||||
pub fn add(a: i32, b: i32) -> i32 {
|
||||
a + b
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
use rustdemo::add;
|
||||
|
||||
fn main() {
|
||||
println!("{}", add(2, 3));
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
pub fn helper() -> String {
|
||||
"ok".to_string()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
import { b } from "./b";
|
||||
|
||||
export const a = 1;
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
import { a } from "./a";
|
||||
|
||||
export const b = a;
|
||||
Reference in new issue
Block a user