validate_syntax
Validate Java syntax quickly using file path or inline code. Detects syntax errors without semantic analysis for speed.
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 | |
| fileName | No | Optional filename for inline content (default: Untitled.java) | |
| content | No | Inline Java source code to validate (alternative to filePath) |