Skip to content

Commit

Permalink
Removed empty comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-lischke committed Oct 7, 2024
1 parent 8182f5c commit 3e8df3e
Show file tree
Hide file tree
Showing 53 changed files with 2 additions and 53 deletions.
2 changes: 1 addition & 1 deletion tool/src/org/antlr/v4/codegen/ActionTranslator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import { HashMap } from "antlr4ng";



/** */

export class ActionTranslator implements ActionSplitterListener {
public static readonly thisRulePropToModelMap =
new HashMap<string, Class<RulePropertyRef>>();
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/LexerFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { DefaultOutputModelFactory } from "./DefaultOutputModelFactory.js";
import { CodeGenerator } from "./CodeGenerator.js";

/** */
export class LexerFactory extends DefaultOutputModelFactory {
public constructor(gen: CodeGenerator) { super(gen); }
}
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/ParserFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ import { BlockAST } from "../tool/ast/BlockAST.js";
import { GrammarAST } from "../tool/ast/GrammarAST.js";
import { TerminalAST } from "../tool/ast/TerminalAST.js";

/** */
export class ParserFactory extends DefaultOutputModelFactory {
public constructor(gen: CodeGenerator) { super(gen); }

Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/Target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import { RuleFunction } from "./model/RuleFunction.js";

export type char = number;

/** */
export abstract class Target {
protected static readonly defaultCharValueEscape: Map<char, string>;
private static readonly languageTemplates = new Map<string, STGroup>();
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/Action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { ActionText } from "./chunk/ActionText.js";
import { StructDecl } from "./decl/StructDecl.js";
import { ActionAST } from "../../tool/ast/ActionAST.js";

/** */
export class Action extends RuleElement {
@ModelElement
public chunks: ActionChunk[];
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/AddToLabelList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { SrcOp } from "./SrcOp.js";
import { OutputModelFactory } from "../OutputModelFactory.js";
import { Decl } from "./decl/Decl.js";

/** */
export class AddToLabelList extends SrcOp {
public readonly label: Decl;
public readonly listName: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { SrcOp } from "./SrcOp.js";
import { OutputModelFactory } from "../OutputModelFactory.js";

/** */
export class CaptureNextTokenType extends SrcOp {
public varName: string;
public constructor(factory: OutputModelFactory, varName: string) {
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/InvokeRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { ActionAST } from "../../tool/ast/ActionAST.js";
import { GrammarAST } from "../../tool/ast/GrammarAST.js";
import { OrderedHashSet } from "antlr4ng";

/** */
export class InvokeRule extends RuleElement implements LabeledOp {
public readonly name: string;
public readonly escapedName: string;
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/LL1Loop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { OutputModelFactory } from "../OutputModelFactory.js";
import { IntervalSet } from "antlr4ng";
import { GrammarAST } from "../../tool/ast/GrammarAST.js";

/** */
export abstract class LL1Loop extends Choice {
/**
* The state associated wih the (A|B|...) block not loopback, which
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { PlusBlockStartState, IntervalSet } from "antlr4ng";
import { BlockAST } from "../../tool/ast/BlockAST.js";
import { GrammarAST } from "../../tool/ast/GrammarAST.js";

/** */
export class LL1PlusBlockSingleAlt extends LL1Loop {
public constructor(factory: OutputModelFactory, plusRoot: GrammarAST, alts: CodeBlockForAlt[]) {
super(factory, plusRoot, alts);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { OutputModelFactory } from "../OutputModelFactory.js";
import { StarLoopEntryState, IntervalSet } from "antlr4ng";
import { GrammarAST } from "../../tool/ast/GrammarAST.js";

/** */
export class LL1StarBlockSingleAlt extends LL1Loop {
public constructor(factory: OutputModelFactory, starRoot: GrammarAST, alts: CodeBlockForAlt[]) {
super(factory, starRoot, alts);
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/MatchToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { Grammar } from "../../tool/Grammar.js";
import { GrammarAST } from "../../tool/ast/GrammarAST.js";
import { TerminalAST } from "../../tool/ast/TerminalAST.js";

/** */
export class MatchToken extends RuleElement implements LabeledOp {
public readonly name: string;
public readonly escapedName: string;
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/OptionalBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { AltBlock } from "./AltBlock.js";
import { OutputModelFactory } from "../OutputModelFactory.js";
import { GrammarAST } from "../../tool/ast/GrammarAST.js";

/** */
export class OptionalBlock extends AltBlock {
public constructor(factory: OutputModelFactory,
questionAST: GrammarAST,
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/OutputModelObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { OutputModelFactory } from "../OutputModelFactory.js";
import { GrammarAST } from "../../tool/ast/GrammarAST.js";

/** */
export abstract class OutputModelObject {
public factory: OutputModelFactory;
public ast: GrammarAST;
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/ParserFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { ActionChunk } from "./chunk/ActionChunk.js";
import { ActionText } from "./chunk/ActionText.js";
import { Grammar } from "../../tool/Grammar.js";

/** */
export class ParserFile extends OutputFile {
public genPackage: string; // from -package cmd-line
public exportMacro: string; // from -DexportMacro cmd-line
Expand Down
2 changes: 1 addition & 1 deletion tool/src/org/antlr/v4/codegen/model/RuleFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { PredAST } from "../../tool/ast/PredAST.js";



/** */

export class RuleFunction extends OutputModelObject {
public readonly name: string;
public readonly escapedName: string;
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/SemPred.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { ActionChunk } from "./chunk/ActionChunk.js";
import { ActionAST } from "../../tool/ast/ActionAST.js";
import { GrammarAST } from "../../tool/ast/GrammarAST.js";

/** */
export class SemPred extends Action {
/**
* The user-specified terminal option {@code fail}, if it was used and the
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/SrcOp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { OutputModelFactory } from "../OutputModelFactory.js";
import { CodeBlock } from "./decl/CodeBlock.js";
import { GrammarAST } from "../../tool/ast/GrammarAST.js";

/** */
export abstract class SrcOp extends OutputModelObject {
/** Used to create unique var names etc... */
public uniqueID: number; // TODO: do we need?
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/Sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { OutputModelFactory } from "../OutputModelFactory.js";
import { IntervalSet } from "antlr4ng";
import { GrammarAST } from "../../tool/ast/GrammarAST.js";

/** */
export class Sync extends SrcOp {
public decision: number;
// public BitSetDecl expecting;
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/TestSetInline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { Target } from "../Target.js";
import { IntervalSet } from "antlr4ng";
import { GrammarAST } from "../../tool/ast/GrammarAST.js";

/** */
export class TestSetInline extends SrcOp {

public static readonly Bitset = class Bitset {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { OutputModelFactory } from "../OutputModelFactory.js";
import { IntervalSet } from "antlr4ng";
import { GrammarAST } from "../../tool/ast/GrammarAST.js";

/** */
export class ThrowEarlyExitException extends ThrowRecognitionException {
public constructor(factory: OutputModelFactory, ast: GrammarAST, expecting: IntervalSet) {
super(factory, ast, expecting);
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/ThrowNoViableAlt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { OutputModelFactory } from "../OutputModelFactory.js";
import { IntervalSet } from "antlr4ng";
import { GrammarAST } from "../../tool/ast/GrammarAST.js";

/** */
export class ThrowNoViableAlt extends ThrowRecognitionException {
public constructor(factory: OutputModelFactory, blkOrEbnfRootAST: GrammarAST,
expecting: IntervalSet) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { OutputModelFactory } from "../OutputModelFactory.js";
import { IntervalSet } from "antlr4ng";
import { GrammarAST } from "../../tool/ast/GrammarAST.js";

/** */
export class ThrowRecognitionException extends SrcOp {
public decision: number;
public grammarFile: string;
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/chunk/ArgRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { LocalRef } from "./LocalRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class ArgRef extends LocalRef {
public constructor(ctx: StructDecl, name: string, escapedName: string) {
super(ctx, name, escapedName);
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/chunk/QRetValueRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { RetValueRef } from "./RetValueRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class QRetValueRef extends RetValueRef {
public readonly dict: string;

Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/chunk/RetValueRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { SymbolRefChunk } from "./SymbolRefChunk.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class RetValueRef extends SymbolRefChunk {
public constructor(ctx: StructDecl, name: string, escapedName: string) {
super(ctx, name, escapedName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { ActionChunk } from "./ActionChunk.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class RulePropertyRef extends ActionChunk {
public label: string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { RulePropertyRef } from "./RulePropertyRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class RulePropertyRef_parser extends RulePropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { RulePropertyRef } from "./RulePropertyRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class RulePropertyRef_start extends RulePropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { RulePropertyRef } from "./RulePropertyRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class RulePropertyRef_stop extends RulePropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { RulePropertyRef } from "./RulePropertyRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class RulePropertyRef_text extends RulePropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { RulePropertyRef } from "./RulePropertyRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class ThisRulePropertyRef_parser extends RulePropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { RulePropertyRef } from "./RulePropertyRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class ThisRulePropertyRef_start extends RulePropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { RulePropertyRef } from "./RulePropertyRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class ThisRulePropertyRef_stop extends RulePropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { RulePropertyRef } from "./RulePropertyRef.js";
import { ActionChunk } from "./ActionChunk.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class ThisRulePropertyRef_text extends RulePropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { ActionChunk } from "./ActionChunk.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class TokenPropertyRef extends ActionChunk {
public label: string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { TokenPropertyRef } from "./TokenPropertyRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class TokenPropertyRef_channel extends TokenPropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { TokenPropertyRef } from "./TokenPropertyRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class TokenPropertyRef_index extends TokenPropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { TokenPropertyRef } from "./TokenPropertyRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class TokenPropertyRef_int extends TokenPropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { TokenPropertyRef } from "./TokenPropertyRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class TokenPropertyRef_line extends TokenPropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { TokenPropertyRef } from "./TokenPropertyRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class TokenPropertyRef_pos extends TokenPropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { TokenPropertyRef } from "./TokenPropertyRef.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class TokenPropertyRef_text extends TokenPropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { TokenPropertyRef } from "./TokenPropertyRef.js";
import { ActionChunk } from "./ActionChunk.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class TokenPropertyRef_type extends TokenPropertyRef {
public constructor(ctx: StructDecl, label: string) {
super(ctx, label);
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/chunk/TokenRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { SymbolRefChunk } from "./SymbolRefChunk.js";
import { ActionChunk } from "./ActionChunk.js";
import { StructDecl } from "../decl/StructDecl.js";

/** */
export class TokenRef extends SymbolRefChunk {
public constructor(ctx: StructDecl, name: string, escapedName: string) {
super(ctx, name, escapedName);
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/dbg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@

import { OutputModelObject } from "./OutputModelObject.js";

/** */
export class dbg extends OutputModelObject {
}
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/decl/AttributeDecl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { Decl } from "./Decl.js";
import { OutputModelFactory } from "../../OutputModelFactory.js";

/** */
export class AttributeDecl extends Decl {
public type: string;
public initValue: string;
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/decl/Decl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { ContextGetterDecl } from "./ContextGetterDecl.js";
import { OutputModelFactory } from "../../OutputModelFactory.js";
import { SrcOp } from "../SrcOp.js";

/** */
export class Decl extends SrcOp {
public readonly name: string;
public readonly escapedName: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { Decl } from "./Decl.js";
import { OutputModelFactory } from "../../OutputModelFactory.js";

/** */
export class RuleContextDecl extends Decl {
public ctxName: string;
public isImplicit: boolean;
Expand Down
1 change: 0 additions & 1 deletion tool/src/org/antlr/v4/codegen/model/decl/TokenListDecl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { TokenDecl } from "./TokenDecl.js";
import { Decl } from "./Decl.js";
import { OutputModelFactory } from "../../OutputModelFactory.js";

/** */
export class TokenListDecl extends TokenDecl {
public constructor(factory: OutputModelFactory, varName: string) {
super(factory, varName);
Expand Down
Loading

0 comments on commit 3e8df3e

Please sign in to comment.