Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ackee-Blockchain/solana-vscode
/ functions
Functions
395 in github.com/Ackee-Blockchain/solana-vscode
⨍
Functions
395
◇
Types & classes
68
↓ 1 callers
Function
find_immutable_account_fields
Find fields in an Accounts struct that are account types without `#[account(mut)]` or `#[account(init)]`. Returns a map of field name to field declara
extension/detectors/immutable_account_mutated/src/lib.rs:156
↓ 1 callers
Method
generateReport
* Generates a coverage report from profraw files * @private * @throws {Error} If report generation fails
extension/src/coverage/coverageManager.ts:253
↓ 1 callers
Method
getBundledServerPath
()
extension/src/detectors/detectorsManager.ts:99
↓ 1 callers
Method
getConfiguredPath
()
extension/src/detectors/detectorsManager.ts:82
↓ 1 callers
Method
getCoverageType
()
extension/src/coverage/tests/coverageManager.test.ts:35
↓ 1 callers
Method
getFilteredCoverageFiles
* Filters directory contents to find coverage report files * @private * @param {string} dirPath - Path to the directory to search * @param {[
extension/src/coverage/coverageReportLoader.ts:199
↓ 1 callers
Method
getGenerateReportCommand
* Constructs the command for generating a coverage report * @private * @returns {Promise<string>} The complete shell command string for generati
extension/src/coverage/coverageManager.ts:289
↓ 1 callers
Method
get_cached_library
Get the cached library path for a detector
language-server/src/core/dylint/cache.rs:104
↓ 1 callers
Method
get_context_generic_type
Get the generic type T from Context<T>
extension/detectors/missing_signer/src/lib.rs:223
↓ 1 callers
Function
get_lint_message
Get the appropriate lint message for an operation
extension/detectors/unchecked_math/src/lib.rs:109
↓ 1 callers
Method
get_struct_def_id
Get the DefId of a struct type
extension/detectors/missing_signer/src/lib.rs:128
↓ 1 callers
Method
get_struct_span
Get the span of a struct definition from its DefId
extension/detectors/missing_signer/src/lib.rs:203
↓ 1 callers
Method
get_suggestion_message
Generate a helpful suggestion message with example
language-server/src/core/detectors/missing_check_comment.rs:45
↓ 1 callers
Method
get_suggestion_message
Generate suggestion message for the specific sysvar type
language-server/src/core/detectors/sysvar_account_detector.rs:52
↓ 1 callers
Method
handleDetectorStatus
(detectorStatus: DetectorStatus)
extension/src/detectors/detectorsManager.ts:250
↓ 1 callers
Method
handleProfdata
* Handles profdata file management by converting old profdata to profraw * @private
extension/src/coverage/coverageManager.ts:232
↓ 1 callers
Method
handleScanComplete
(scanSummary: ScanSummary)
extension/src/detectors/detectorsManager.ts:213
↓ 1 callers
Method
handleServerEvent
* Handles events from the coverage server * @private
extension/src/coverage/coverageManager.ts:333
↓ 1 callers
Method
handleServerNotFound
()
extension/src/detectors/detectorsManager.ts:132
↓ 1 callers
Method
handleUpdateDecorations
* Handles update decorations event from the coverage server * @private
extension/src/coverage/coverageManager.ts:358
↓ 1 callers
Method
has_accounts_derive
Check if a struct has #[derive(Accounts)]
extension/detectors/missing_signer/src/lib.rs:138
↓ 1 callers
Method
has_check_doc_comment
Check if field has a /// CHECK: doc comment
language-server/src/core/detectors/missing_check_comment.rs:25
↓ 1 callers
Function
has_mut_or_init_attr
Check if a field has `#[account(mut)]` or `#[account(init)]` attribute
extension/detectors/immutable_account_mutated/src/lib.rs:193
↓ 1 callers
Method
id
(&self)
language-server/src/core/detectors/manual_lamports_zeroing.rs:114
↓ 1 callers
Method
id
(&self)
language-server/src/core/detectors/missing_initspace_detector.rs:26
↓ 1 callers
Method
id
(&self)
language-server/src/core/detectors/sysvar_account_detector.rs:61
↓ 1 callers
Method
id
(&self)
language-server/src/core/detectors/instruction_attribute_unused.rs:57
↓ 1 callers
Function
initExtensionFeatureManagers
()
extension/src/extensionFeatureManagers.ts:5
↓ 1 callers
Method
initLineCoverageDecorations
* Initializes line coverage decorations based on predefined color levels * @private
extension/src/coverage/coverageDecoration.ts:40
↓ 1 callers
Method
initialize
( &self, params: InitializeParams, )
language-server/src/backend.rs:37
↓ 1 callers
Function
is_account_type
Check if a type is one of the Anchor account types
extension/detectors/immutable_account_mutated/src/lib.rs:184
↓ 1 callers
Method
is_accounts_access
Check if an expression is accessing the `accounts` field (e.g., `ctx.accounts`) Handles auto-deref chains that the compiler inserts (e.g., `Deref(Fiel
extension/detectors/immutable_account_mutated/src/lib.rs:304
↓ 1 callers
Method
is_anchor_program
Check if a Rust file contains Anchor program code
language-server/src/core/file_scanner/scanner.rs:147
↓ 1 callers
Method
is_available
Check if dylint is available
language-server/src/dylint_runner/runner.rs:286
↓ 1 callers
Method
is_initialized
Check if detectors have been initialized
language-server/src/core/dylint/manager.rs:49
↓ 1 callers
Method
is_lamports_access
Return true if the expression represents an access to lamports: - foo.lamports - foo.lamports() (some code uses a method accessor) - foo.lamports.bo
language-server/src/core/detectors/manual_lamports_zeroing.rs:48
↓ 1 callers
Method
is_lamports_zero_assignment
Detect `lamports = 0`
language-server/src/core/detectors/manual_lamports_zeroing.rs:89
↓ 1 callers
Method
is_lamports_zero_method_call
Detect method forms that set lamports to zero, e.g. `account.set_lamports(0)`
language-server/src/core/detectors/manual_lamports_zeroing.rs:94
↓ 1 callers
Method
is_manual_lamports_pattern
Detect any manual lamports zeroing pattern
language-server/src/core/detectors/manual_lamports_zeroing.rs:104
↓ 1 callers
Method
is_parameter_used
Check if parameter is used anywhere in the struct
language-server/src/core/detectors/instruction_attribute_unused.rs:48
↓ 1 callers
Method
is_parameter_used_in_constraints
Check if a parameter is used in account constraints
language-server/src/core/detectors/instruction_attribute_unused.rs:24
↓ 1 callers
Function
is_potentially_unsafe_operation
Check if an operation is potentially unsafe (could overflow/underflow)
extension/detectors/unchecked_math/src/lib.rs:148
↓ 1 callers
Method
is_signer_type
Check if a type is Signer<'info>
extension/detectors/missing_signer/src/lib.rs:119
↓ 1 callers
Function
is_small_literal
Check if an expression is a small literal that's unlikely to cause issues when cast
extension/detectors/unsafe_type_cast/src/lib.rs:148
↓ 1 callers
Method
is_sysvar_field
Check if a field is a Sysvar account type
language-server/src/core/detectors/sysvar_account_detector.rs:25
↓ 1 callers
Method
is_test_file
Check if a file is a dedicated test file based on path Files with test modules inside production files will still be analyzed (detectors will naturall
language-server/src/core/file_scanner/scanner.rs:157
↓ 1 callers
Function
main
()
extension/src/test/runTest.ts:4
↓ 1 callers
Method
message
(&self)
language-server/src/core/detectors/manual_lamports_zeroing.rs:126
↓ 1 callers
Method
message
(&self)
language-server/src/core/detectors/missing_initspace_detector.rs:38
↓ 1 callers
Method
name
(&self)
language-server/src/core/detectors/missing_check_comment.rs:58
↓ 1 callers
Method
on_change
(&self, params: TextDocumentItem)
language-server/src/backend.rs:753
↓ 1 callers
Method
parseCoverageReport
* Parses raw coverage report data and updates the current coverage report * @private * @param {Uint8Array} data - Raw binary data from the cover
extension/src/coverage/coverageReportLoader.ts:172
↓ 1 callers
Function
parse_diagnostic
Parse a single diagnostic message
language-server/src/dylint_runner/parser.rs:60
↓ 1 callers
Function
parse_json_output
Parse cargo check JSON output and extract lint diagnostics Only accepts diagnostics from the specified lint codes (whitelist approach)
language-server/src/dylint_runner/parser.rs:8
↓ 1 callers
Function
parse_related_information
Parse children of a diagnostic message to extract related information with spans
language-server/src/dylint_runner/parser.rs:149
↓ 1 callers
Method
prepareAndDisplaySegments
* Prepares and displays coverage segments for a specific file * @param {CoverageFileData} coverageFileData - Coverage data for a specific file *
extension/src/coverage/coverageDecoration.ts:167
↓ 1 callers
Method
register
Register a detector with the registry
language-server/src/core/registry/detector_registry.rs:32
↓ 1 callers
Function
registerCommands
( context: vscode.ExtensionContext, extensionFeatureManagers: ExtensionFeatureManagers )
extension/src/commands.ts:8
↓ 1 callers
Method
reloadDetectors
()
extension/src/detectors/detectorsManager.ts:311
↓ 1 callers
Method
removeLeftOverProfrawFiles
* Removes leftover profraw files and related artifacts * @private
extension/src/coverage/coverageManager.ts:316
↓ 1 callers
Method
resolveServerPath
()
extension/src/detectors/detectorsManager.ts:54
↓ 1 callers
Method
scanWorkspace
()
extension/src/detectors/detectorsManager.ts:285
↓ 1 callers
Method
scan_detectors
Scan for dylint detector crates in the workspace
language-server/src/core/dylint/scanner.rs:33
↓ 1 callers
Method
scan_rust_files_with_client
Scan for Rust files and analyze them with optional progress notifications Only scans .rs files within the workspace, excluding external dependencies
language-server/src/core/file_scanner/scanner.rs:58
↓ 1 callers
Method
scan_workspace_with_client
Scan all relevant files in the workspace with optional progress notifications
language-server/src/core/file_scanner/scanner.rs:27
↓ 1 callers
Method
selectCoverageType
* Prompts user to select coverage type (Static or Dynamic) * @private * @throws {Error} If no coverage type is selected
extension/src/coverage/coverageManager.ts:145
↓ 1 callers
Method
setStatusBarUpdateCallback
* Set callback for status bar updates
extension/src/detectors/detectorsManager.ts:339
↓ 1 callers
Method
set_extension_path
Set the extension path (where bundled detectors are located)
language-server/src/core/dylint/scanner.rs:27
↓ 1 callers
Method
setupCoverage
* Sets up coverage visualization by configuring listeners and selecting coverage options * @private * @throws {Error} If required selections are
extension/src/coverage/coverageManager.ts:129
↓ 1 callers
Method
setupCoverageServer
* Sets up the coverage server and listens for events * @private
extension/src/coverage/coverageManager.ts:81
↓ 1 callers
Method
setupServer
* Sets up and configures the HTTP server to handle POST requests * Parses JSON request bodies and routes requests to appropriate handlers * @pri
extension/src/coverage/coverageServer.ts:69
↓ 1 callers
Method
shouldDisplaySegment
* Determines whether a coverage segment should be displayed based on filtering rules * This helps avoid displaying misleading coverage information
extension/src/coverage/coverageDecoration.ts:208
↓ 1 callers
Method
should_skip_directory
Determine if a directory should be skipped during scanning This filters out external dependencies, build artifacts, and IDE folders
language-server/src/core/file_scanner/scanner.rs:178
↓ 1 callers
Method
showCoverageFilePicker
* Shows a file picker dialog for selecting a coverage report file * @private * @throws {Error} If no file is selected
extension/src/coverage/coverageReportLoader.ts:100
↓ 1 callers
Method
showCoverageQuickPick
* Shows a quick pick menu for selecting from multiple coverage report files * @private * @param {vscode.Uri[]} coverageFiles - Array of coverage
extension/src/coverage/coverageReportLoader.ts:130
↓ 1 callers
Method
showStaticCoverage
* Displays static coverage from a selected coverage report file * @private
extension/src/coverage/coverageManager.ts:113
↓ 1 callers
Method
startLanguageServer
(serverPath: string)
extension/src/detectors/detectorsManager.ts:161
↓ 1 callers
Function
start_server
(service: LspService<Backend>, socket: ClientSocket)
language-server/src/server.rs:11
↓ 1 callers
Method
testCalculateCoverageLevel
(count: number)
extension/src/coverage/tests/coverageDecoration.test.ts:9
↓ 1 callers
Method
testCreateSegmentDecoration
( segment: CoverageSegment, coverageFileData: CoverageFileData, editor: vscode.TextEditor )
extension/src/coverage/tests/coverageDecoration.test.ts:13
↓ 1 callers
Method
testGetGenerateReportCommand
()
extension/src/coverage/tests/coverageManager.test.ts:19
↓ 1 callers
Method
testPrepareAndDisplaySegments
( coverageFileData: CoverageFileData, editor: vscode.TextEditor )
extension/src/coverage/tests/coverageDecoration.test.ts:21
↓ 1 callers
Method
total_issues
Get total number of issues found across all files
language-server/src/core/file_scanner/types.rs:13
↓ 1 callers
Method
transformSegment
* Transforms a raw segment array into a CoverageSegment object * @private * @param {any[]} segmentArray - Raw array containing segment data *
extension/src/coverage/coverageReportLoader.ts:155
↓ 1 callers
Method
updateCoverage
* Generates a coverage report and updates the coverage decorations * @private
extension/src/coverage/coverageManager.ts:167
↓ 1 callers
Method
updateStatusBarFromServerState
* Update status bar based on server state
extension/src/detectors/detectorsManager.ts:346
↓ 1 callers
Method
validate_instruction_parameters
Check if instruction attribute parameters match the handler parameters
language-server/src/core/detectors/instruction_attribute_invalid.rs:150
↓ 1 callers
Method
visit_expr
(&mut self, expr: &'tcx Expr<'tcx>)
extension/detectors/immutable_account_mutated/src/lib.rs:219
↓ 1 callers
Method
walk_directory
Walk directory recursively and find files with specific extensions
language-server/src/core/file_scanner/scanner.rs:104
↓ 1 callers
Method
walk_directory_recursive
( &self, dir: &Path, extensions: &[&str], files: &mut Vec<PathBuf>, )
language-server/src/core/file_scanner/scanner.rs:116
Function
activate
(context: vscode.ExtensionContext)
extension/src/extension.ts:5
Method
analyze
(&mut self, content: &str, _file_path: Option<&PathBuf>)
language-server/src/core/detectors/missing_check_comment.rs:74
Method
analyze
(&mut self, content: &str, _file_path: Option<&PathBuf>)
language-server/src/core/detectors/manual_lamports_zeroing.rs:134
Method
analyze
(&mut self, content: &str, _file_path: Option<&PathBuf>)
language-server/src/core/detectors/missing_initspace_detector.rs:46
Method
analyze
(&mut self, content: &str, _file_path: Option<&PathBuf>)
language-server/src/core/detectors/instruction_attribute_invalid.rs:265
Method
analyze
(&mut self, content: &str, _file_path: Option<&PathBuf>)
language-server/src/core/detectors/sysvar_account_detector.rs:81
Method
analyze
(&mut self, content: &str, _file_path: Option<&PathBuf>)
language-server/src/core/detectors/instruction_attribute_unused.rs:77
Method
byte_offset_to_position
(content: &str, offset: usize)
language-server/src/core/utilities/ast_analyzer.rs:39
Method
check_dylint_driver_available
Check if dylint-driver is available
language-server/src/core/dylint/manager.rs:44
Method
check_expr
(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>)
extension/detectors/unchecked_math/src/lib.rs:43
← previous
next →
101–200 of 395, ranked by callers