remove noisy comments/documentation
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
import * as t from "babel-types";
|
||||
|
||||
/**
|
||||
* [Please add a description.]
|
||||
*/
|
||||
|
||||
export default function (node) {
|
||||
if (!this.isReferenced()) return;
|
||||
|
||||
@@ -28,10 +24,6 @@ export default function (node) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* [Please add a description.]
|
||||
*/
|
||||
|
||||
function getTypeAnnotationBindingConstantViolations(path, name) {
|
||||
var binding = path.scope.getBinding(name);
|
||||
|
||||
@@ -85,10 +77,6 @@ function getTypeAnnotationBindingConstantViolations(path, name) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* [Please add a description.]
|
||||
*/
|
||||
|
||||
function getConstantViolationsBefore(binding, path, functions) {
|
||||
var violations = binding.constantViolations.slice();
|
||||
violations.unshift(binding.path);
|
||||
@@ -100,10 +88,6 @@ function getConstantViolationsBefore(binding, path, functions) {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* [Please add a description.]
|
||||
*/
|
||||
|
||||
function inferAnnotationFromBinaryExpression(name, path) {
|
||||
var operator = path.node.operator;
|
||||
|
||||
@@ -155,10 +139,6 @@ function inferAnnotationFromBinaryExpression(name, path) {
|
||||
return t.createTypeAnnotationBasedOnTypeof(typePath.node.value);
|
||||
}
|
||||
|
||||
/**
|
||||
* [Please add a description.]
|
||||
*/
|
||||
|
||||
function getParentConditionalPath(path) {
|
||||
var parentPath;
|
||||
while (parentPath = path.parentPath) {
|
||||
@@ -174,10 +154,6 @@ function getParentConditionalPath(path) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* [Please add a description.]
|
||||
*/
|
||||
|
||||
function getConditionalAnnotation(path, name) {
|
||||
var ifStatement = getParentConditionalPath(path);
|
||||
if (!ifStatement) return;
|
||||
|
||||
Reference in New Issue
Block a user