validate_syntax
Check Java code syntax for errors in files or inline content. Provides quick validation without semantic analysis to identify syntax issues rapidly.
Instructions
Quick syntax-only validation for a file or inline code.
USAGE: validate_syntax(filePath="...") or validate_syntax(content="...") OUTPUT: Syntax errors (no semantic analysis for speed)
Much faster than get_diagnostics - use for quick syntax checks.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Path to source file to validate | |
| content | No | Inline Java source code to validate (alternative to filePath) | |
| fileName | No | Optional filename for inline content (default: Untitled.java) |