mirror of
https://github.com/github/codeql.git
synced 2026-07-29 06:46:46 +02:00
No special settings; command: find javascript/extractor/src -name "*.java" | xargs java -jar /path/to/google-java-format-1.7-all-deps.jar --replace
16 lines
323 B
Java
16 lines
323 B
Java
package com.semmle.js.ast;
|
|
|
|
/** Common superclass of all AST node types. */
|
|
public abstract class Node extends SourceElement implements INode {
|
|
private final String type;
|
|
|
|
public Node(String type, SourceLocation loc) {
|
|
super(loc);
|
|
this.type = type;
|
|
}
|
|
|
|
public final String getType() {
|
|
return type;
|
|
}
|
|
}
|